This commit is contained in:
syuilo 2018-04-02 04:01:34 +09:00
parent ad57e36d0d
commit e8bde94e5b
9 changed files with 47 additions and 40 deletions

View file

@ -1,8 +1,8 @@
import config from '../../../../conf';
import { IRemoteAccount } from '../../../../models/user';
import { IRemoteUser } from '../../../../models/user';
export default ({ username }, { account }) => ({
export default ({ username }, followee: IRemoteUser) => ({
type: 'Follow',
actor: `${config.url}/@${username}`,
object: (account as IRemoteAccount).uri
object: followee.account.uri
});