User blocking (Following part) (#3035)
* block wip * UndoBlock * UnBlock * wip * follow * UI * fix
This commit is contained in:
8
src/remote/activitypub/renderer/block.ts
Normal file
8
src/remote/activitypub/renderer/block.ts
Normal file
@@ -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
|
||||
});
|
Reference in New Issue
Block a user