Fix bugs
This commit is contained in:
parent
7f448221ce
commit
5ddb047794
6 changed files with 14 additions and 32 deletions
|
|
@ -1,8 +1,8 @@
|
|||
import config from '../../../config';
|
||||
import { IRemoteUser } from '../../../models/user';
|
||||
import { IRemoteUser, ILocalUser } from '../../../models/user';
|
||||
|
||||
export default ({ username }, followee: IRemoteUser) => ({
|
||||
export default (follower: ILocalUser, followee: IRemoteUser) => ({
|
||||
type: 'Follow',
|
||||
actor: `${config.url}/@${username}`,
|
||||
actor: `${config.url}/@${follower.username}`,
|
||||
object: followee.uri
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue