diff options
Diffstat (limited to 'src/remote/activitypub/renderer/block.ts')
| -rw-r--r-- | src/remote/activitypub/renderer/block.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/remote/activitypub/renderer/block.ts b/src/remote/activitypub/renderer/block.ts new file mode 100644 index 0000000000..316fc13c05 --- /dev/null +++ b/src/remote/activitypub/renderer/block.ts @@ -0,0 +1,8 @@ +import config from '../../../config'; +import { ILocalUser, IRemoteUser } from "../../../models/user"; + +export default (blocker?: ILocalUser, blockee?: IRemoteUser) => ({ + type: 'Block', + actor: `${config.url}/users/${blocker._id}`, + object: blockee.uri +}); |