mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: incorrect activity id sent out on 1b12 announce
This commit is contained in:
@@ -158,7 +158,7 @@ activitypubApi.create.note = enabledCheck(async (caller, { pid }) => {
|
|||||||
setTimeout(() => { // Delay sending to avoid potential race condition
|
setTimeout(() => { // Delay sending to avoid potential race condition
|
||||||
Promise.all([payload, payload.object].map(async (object) => {
|
Promise.all([payload, payload.object].map(async (object) => {
|
||||||
await activitypub.send('cid', cid, followers, {
|
await activitypub.send('cid', cid, followers, {
|
||||||
id: `${object.id}#activity/announce/${Date.now()}`,
|
id: `${object.object ? object.object.id : object.id}#activity/announce/${Date.now()}`,
|
||||||
type: 'Announce',
|
type: 'Announce',
|
||||||
to: [activitypub._constants.publicAddress],
|
to: [activitypub._constants.publicAddress],
|
||||||
cc: [`${nconf.get('url')}/category/${cid}/followers`],
|
cc: [`${nconf.get('url')}/category/${cid}/followers`],
|
||||||
|
|||||||
Reference in New Issue
Block a user