fix: explicitly set updated property when federating notes out

This commit is contained in:
Julian Lam
2024-09-24 12:15:10 -04:00
parent e0c410cd7c
commit 6fe4d44675
4 changed files with 12 additions and 4 deletions

View File

@@ -256,7 +256,10 @@ Helpers.resolveObjects = async (ids) => {
const post = (await posts.getPostSummaryByPids(
[resolvedId],
activitypub._constants.uid,
{ stripTags: false }
{
stripTags: false,
extraFields: ['edited'],
}
)).pop();
if (!post) {
throw new Error('[[error:activitypub.invalid-id]]');