fix lint errors in NoteCreateService & NoteEditService

This commit is contained in:
Hazelnoot 2025-01-28 00:29:27 -05:00
parent 2d7918a9b7
commit feeaf26641
2 changed files with 3 additions and 3 deletions

View file

@ -486,10 +486,10 @@ export class NoteCreateService implements OnApplicationShutdown {
// should really not happen, but better safe than sorry // should really not happen, but better safe than sorry
if (data.reply?.id === insert.id) { if (data.reply?.id === insert.id) {
throw new Error("A note can't reply to itself"); throw new Error('A note can\'t reply to itself');
} }
if (data.renote?.id === insert.id) { if (data.renote?.id === insert.id) {
throw new Error("A note can't renote itself"); throw new Error('A note can\'t renote itself');
} }
if (data.uri != null) insert.uri = data.uri; if (data.uri != null) insert.uri = data.uri;

View file

@ -309,7 +309,7 @@ export class NoteEditService implements OnApplicationShutdown {
if (this.isRenote(data)) { if (this.isRenote(data)) {
if (data.renote.id === oldnote.id) { if (data.renote.id === oldnote.id) {
throw new Error("A note can't renote itself"); throw new Error('A note can\'t renote itself');
} }
switch (data.renote.visibility) { switch (data.renote.visibility) {