mirror of
https://github.com/HeyPuter/puter.git
synced 2026-05-06 23:20:08 -05:00
fix: thread delete events
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user