Fix bugs
This commit is contained in:
@ -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
|
||||
});
|
||||
|
@ -66,14 +66,12 @@ export default async (value, verifier?: string) => {
|
||||
usernameLower: object.preferredUsername.toLowerCase(),
|
||||
host,
|
||||
hostLower,
|
||||
account: {
|
||||
publicKey: {
|
||||
id: object.publicKey.id,
|
||||
publicKeyPem: object.publicKey.publicKeyPem
|
||||
},
|
||||
inbox: object.inbox,
|
||||
uri: id,
|
||||
publicKey: {
|
||||
id: object.publicKey.id,
|
||||
publicKeyPem: object.publicKey.publicKeyPem
|
||||
},
|
||||
inbox: object.inbox,
|
||||
uri: id
|
||||
});
|
||||
|
||||
const [avatarId, bannerId] = (await Promise.all([
|
||||
|
Reference in New Issue
Block a user