forked from FoundKeyGang/FoundKey
remove unnecessary checks
These checks were made obsolete by commit
6df2f7c55c
.
This commit is contained in:
parent
a27a29b371
commit
899b01a031
1 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue