Refactor (#7394)
* wip * wip * wip * wip * wip * Update define.ts * Update update.ts * Update user.ts * wip * wip * Update request.ts * URL * wip * wip * wip * wip * Update invite.ts * Update create.ts
This commit is contained in:
@@ -2,7 +2,7 @@ import config from '@/config';
|
||||
import { User } from '../../../models/entities/user';
|
||||
import { Users } from '../../../models';
|
||||
|
||||
export default (follower: User, followee: User, requestId?: string) => {
|
||||
export default (follower: { id: User['id']; host: User['host']; uri: User['host'] }, followee: { id: User['id']; host: User['host']; uri: User['host'] }, requestId?: string) => {
|
||||
const follow = {
|
||||
type: 'Follow',
|
||||
actor: Users.isLocalUser(follower) ? `${config.url}/users/${follower.id}` : follower.uri,
|
||||
|
||||
Reference in New Issue
Block a user