User blocking (Following part) (#3035)
* block wip * UndoBlock * UnBlock * wip * follow * UI * fix
This commit is contained in:
parent
bcb0588409
commit
d64dc45899
17 changed files with 537 additions and 4 deletions
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
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue