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

@@ -50,7 +50,7 @@ async function announce(id, activity) {
winston.info(`[activitypub/inbox.announce(1b12)] Announcing ${activity.type} to followers of cid ${cid}`);
await Promise.all([activity, activity.object].map(async (object) => {
await activitypub.send('cid', cid, followers, {
id: `${id}#activity/announce/${Date.now()}`,
id: `${nconf.get('url')}/post/${encodeURIComponent(id)}#activity/announce/${Date.now()}`,
type: 'Announce',
to: [`${nconf.get('url')}/category/${cid}/followers`],
cc: [actor, activitypub._constants.publicAddress],