fix: #13374, updates to posts.edit to handle remote content updates better

This commit is contained in:
Julian Lam
2025-05-06 10:44:47 -04:00
parent 625ce96f94
commit b433848971
4 changed files with 25 additions and 17 deletions

View File

@@ -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) {