fix: thread delete events

This commit is contained in:
KernelDeimos
2025-03-12 14:57:53 -04:00
parent 41d5dbc0da
commit 3e74f42c4d
+7 -1
View File
@@ -376,6 +376,7 @@ class ThreadService extends BaseService {
uid,
});
}
const parent_uid = thread.parent_uid;
const actor = Context.get('actor');
@@ -401,9 +402,14 @@ class ThreadService extends BaseService {
res.json({});
// Notify subscribers
await this.notify_subscribers(parent_uid, 'delete', {
await this.notify_subscribers(uid, 'delete', {
uid,
});
// Notify parent subscribers
await this.notify_subscribers(parent_uid, 'child-delete', {
parent_uid,
});
}
}).attach(router);