mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-22 16:30:34 +01:00
test: a few additional tests for announce handling
This commit is contained in:
@@ -162,6 +162,8 @@ Helpers.mocks.announce = (override = {}) => {
|
||||
if (!object) {
|
||||
({ id: object } = Helpers.mocks.note());
|
||||
}
|
||||
delete override.actor;
|
||||
delete override.object;
|
||||
|
||||
const activity = {
|
||||
'@context': 'https://www.w3.org/ns/activitystreams',
|
||||
@@ -171,6 +173,7 @@ Helpers.mocks.announce = (override = {}) => {
|
||||
cc: [`${actor}/followers`],
|
||||
actor,
|
||||
object,
|
||||
...override,
|
||||
};
|
||||
|
||||
return { activity };
|
||||
|
||||
Reference in New Issue
Block a user