Skip to content
Snippets Groups Projects

Prevent "mark instance as NSFW" from producing hellspawns

Merged Hazelnoot requested to merge fEmber/Sharkey:hazelnoot/fix-mark-as-nsfw-hellspawn into develop
All threads resolved!
2 files
+ 3
10
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -146,7 +146,7 @@ type Option = {
app?: MiApp | null;
};
type PureRenoteOption = Option & { renote: MiNote } & ({ text?: null } | { cw?: null } | { reply?: null } | { poll?: null } | { files?: null | [] });
export type PureRenoteOption = Option & { renote: MiNote } & ({ text?: null } | { cw?: null } | { reply?: null } | { poll?: null } | { files?: null | [] });
@Injectable()
export class NoteCreateService implements OnApplicationShutdown {
@@ -824,7 +824,7 @@ export class NoteCreateService implements OnApplicationShutdown {
}
@bindThis
private isPureRenote(note: Option): note is PureRenoteOption {
public isPureRenote(note: Option): note is PureRenoteOption {
return this.isRenote(note) && !this.isQuote(note);
}
Loading