fix a bug

This commit is contained in:
Lhcfl 2024-03-17 14:17:54 +08:00
parent 6e8d1a167f
commit ac2b42b71b

View file

@ -118,8 +118,8 @@ export default async function (
// also deliever delete activity to cascaded notes
for (const cascadingNote of cascadingNotes) {
if (cascadingNote.userId !== user.id) {
// For others, the post appears to have been deleted and publishNoteStream is also required.
if (deleteFromDb) {
// For other notes, publishNoteStream is also required.
publishNoteStream(cascadingNote.id, "deleted", {
deletedAt: deletedAt,
});