From 899b01a031c4f8214289d73f4211d97dfeb91f6f Mon Sep 17 00:00:00 2001 From: Johann150 Date: Fri, 11 Nov 2022 18:07:49 +0100 Subject: [PATCH] remove unnecessary checks These checks were made obsolete by commit 6df2f7c55c95597c90cc83fd90b6d86a876bdfaa. --- packages/backend/src/services/note/delete.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/backend/src/services/note/delete.ts b/packages/backend/src/services/note/delete.ts index e5bbd65e4..a8b186fc8 100644 --- a/packages/backend/src/services/note/delete.ts +++ b/packages/backend/src/services/note/delete.ts @@ -53,11 +53,9 @@ export default async function(user: { id: User['id']; uri: User['uri']; host: Us deliverToConcerned(user, note, content); } - // also deliever delete activity to cascaded notes + // also deliver delete activity to cascaded notes const cascadingNotes = await findCascadingNotes(note); for (const cascadingNote of cascadingNotes) { - if (!cascadingNote.user) continue; - if (!Users.isLocalUser(cascadingNote.user)) continue; const content = renderActivity(renderDelete(renderTombstone(`${config.url}/notes/${cascadingNote.id}`), cascadingNote.user)); deliverToConcerned(cascadingNote.user, cascadingNote, content); }