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