mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-30 11:19:54 +01:00
feat: on post delete, federate out an Update(Tombstone)
This commit is contained in:
@@ -193,6 +193,11 @@ async function deleteOrRestore(caller, data, params) {
|
||||
tid: postData.tid,
|
||||
ip: caller.ip,
|
||||
});
|
||||
|
||||
// Explicitly non-awaited
|
||||
posts.getPostSummaryByPids([data.pid], caller.uid, {}).then(([post]) => {
|
||||
require('.').activitypub.update.note(caller, { post });
|
||||
});
|
||||
}
|
||||
|
||||
async function deleteOrRestoreTopicOf(command, pid, caller) {
|
||||
|
||||
Reference in New Issue
Block a user