mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 12:05:57 +01:00
fix: explicitly set updated property when federating notes out
This commit is contained in:
@@ -277,7 +277,8 @@ Mocks.note = async (post) => {
|
||||
});
|
||||
}
|
||||
|
||||
const published = new Date(parseInt(post.timestamp, 10)).toISOString();
|
||||
const published = post.timestampISO;
|
||||
const updated = post.edited ? post.editedISO : null;
|
||||
|
||||
// todo: post visibility
|
||||
const to = new Set([activitypub._constants.publicAddress]);
|
||||
@@ -420,6 +421,7 @@ Mocks.note = async (post) => {
|
||||
cc: Array.from(cc),
|
||||
inReplyTo,
|
||||
published,
|
||||
updated,
|
||||
url: id,
|
||||
attributedTo: `${nconf.get('url')}/uid/${post.user.uid}`,
|
||||
context: `${nconf.get('url')}/topic/${post.topic.tid}`,
|
||||
|
||||
Reference in New Issue
Block a user