fix: id on 1b12 announces

This commit is contained in:
Julian Lam
2024-09-17 10:46:01 -04:00
parent 1fe8ac191d
commit 047d5992dc
2 changed files with 2 additions and 2 deletions

View File

@@ -179,7 +179,7 @@ activitypubApi.create.note = enabledCheck(async (caller, { pid, post }) => {
setTimeout(() => { // Delay sending to avoid potential race condition
Promise.all([payload, payload.object].map(async (object) => {
await activitypub.send('cid', cid, followers, {
id: `${object.object ? object.object.id : object.id}#activity/announce/${Date.now()}`,
id: `${nconf.get('url')}/post/${encodeURIComponent(object.object ? object.object.id : object.id)}#activity/announce/${Date.now()}`,
type: 'Announce',
to: [activitypub._constants.publicAddress],
cc: [`${nconf.get('url')}/category/${cid}/followers`],