Implement remote follow
This commit is contained in:
parent
cba73d6bc1
commit
dc529711ce
11 changed files with 114 additions and 32 deletions
8
src/common/remote/activitypub/renderer/follow.ts
Normal file
8
src/common/remote/activitypub/renderer/follow.ts
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import config from '../../../../conf';
|
||||
import { IRemoteAccount } from '../../../../models/user';
|
||||
|
||||
export default ({ username }, { account }) => ({
|
||||
type: 'Follow',
|
||||
actor: `${config.url}/@${username}`,
|
||||
object: (account as IRemoteAccount).uri
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue