1
0

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
@@ -486,10 +486,10 @@ export class NoteCreateService implements OnApplicationShutdown {
// should really not happen, but better safe than sorry
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) {
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;
+1 -1
View File
@@ -309,7 +309,7 @@ export class NoteEditService implements OnApplicationShutdown {
if (this.isRenote(data)) {
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) {