mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 03:55:55 +01:00
fix: remote categories should not show up in a user's follow lists
This commit is contained in:
@@ -106,3 +106,20 @@ Helpers.mocks.create = (object) => {
|
||||
|
||||
return { id, activity };
|
||||
};
|
||||
|
||||
Helpers.mocks.accept = (actor, object) => {
|
||||
const baseUrl = 'https://example.org';
|
||||
const uuid = utils.generateUUID();
|
||||
const id = `${baseUrl}/activity/${uuid}`;
|
||||
|
||||
const activity = {
|
||||
'@context': 'https://www.w3.org/ns/activitystreams',
|
||||
id,
|
||||
type: 'Accept',
|
||||
to: ['https://www.w3.org/ns/activitystreams#Public'],
|
||||
actor,
|
||||
object,
|
||||
};
|
||||
|
||||
return { activity };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user