mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: the id of an actor should be its immutable uri (/uid/:uid) and not userslug
This commit is contained in:
@@ -145,7 +145,7 @@ Mocks.actor = async (uid) => {
|
|||||||
'https://www.w3.org/ns/activitystreams',
|
'https://www.w3.org/ns/activitystreams',
|
||||||
'https://w3id.org/security/v1',
|
'https://w3id.org/security/v1',
|
||||||
],
|
],
|
||||||
id: `${nconf.get('url')}/user/${userslug}`,
|
id: `${nconf.get('url')}/uid/${uid}`,
|
||||||
url: `${nconf.get('url')}/user/${userslug}`,
|
url: `${nconf.get('url')}/user/${userslug}`,
|
||||||
followers: `${nconf.get('url')}/user/${userslug}/followers`,
|
followers: `${nconf.get('url')}/user/${userslug}/followers`,
|
||||||
following: `${nconf.get('url')}/user/${userslug}/following`,
|
following: `${nconf.get('url')}/user/${userslug}/following`,
|
||||||
|
|||||||
Reference in New Issue
Block a user