mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-22 00:10:25 +01:00
fix: #13374, updates to posts.edit to handle remote content updates better
This commit is contained in:
@@ -95,6 +95,7 @@ inbox.update = async (req) => {
|
||||
switch (true) {
|
||||
case isNote: {
|
||||
const postData = await activitypub.mocks.post(object);
|
||||
postData.tags = await activitypub.notes._normalizeTags(postData._activitypub.tag, postData.cid);
|
||||
await posts.edit(postData);
|
||||
const isDeleted = await posts.getPostField(object.id, 'deleted');
|
||||
if (isDeleted) {
|
||||
|
||||
Reference in New Issue
Block a user