remove unnecessary checks

These checks were made obsolete by commit
6df2f7c55c.
This commit is contained in:
Johann150 2022-11-11 18:07:49 +01:00
parent a27a29b371
commit 899b01a031
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -53,11 +53,9 @@ export default async function(user: { id: User['id']; uri: User['uri']; host: Us
deliverToConcerned(user, note, content); deliverToConcerned(user, note, content);
} }
// also deliever delete activity to cascaded notes // also deliver delete activity to cascaded notes
const cascadingNotes = await findCascadingNotes(note); const cascadingNotes = await findCascadingNotes(note);
for (const cascadingNote of cascadingNotes) { 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)); const content = renderActivity(renderDelete(renderTombstone(`${config.url}/notes/${cascadingNote.id}`), cascadingNote.user));
deliverToConcerned(cascadingNote.user, cascadingNote, content); deliverToConcerned(cascadingNote.user, cascadingNote, content);
} }