merge: lint

This commit is contained in:
Mar0xy 2023-10-15 02:18:52 +02:00
commit c50c3b3816
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828

View file

@ -68,7 +68,7 @@ export class NoteDeleteService {
await this.notesRepository.decrement({ id: note.replyId }, 'repliesCount', 1); await this.notesRepository.decrement({ id: note.replyId }, 'repliesCount', 1);
} }
if (note.renoteId && note.renote?.userId != user.id && note.text == null && !note.hasPoll && (note.fileIds == null || note.fileIds.length === 0)) { if (note.renoteId && note.renote?.userId !== user.id && note.text == null && !note.hasPoll && (note.fileIds == null || note.fileIds.length === 0)) {
await this.notesRepository.decrement({ id: note.renoteId }, 'renoteCount', 1); await this.notesRepository.decrement({ id: note.renoteId }, 'renoteCount', 1);
} }