Use id in uri instead of username

This commit is contained in:
syuilo
2018-04-08 15:15:22 +09:00
parent 1fced8a59b
commit e63f884bc6
14 changed files with 52 additions and 87 deletions

View File

@@ -3,6 +3,6 @@ import { IRemoteUser, ILocalUser } from '../../../models/user';
export default (follower: ILocalUser, followee: IRemoteUser) => ({
type: 'Follow',
actor: `${config.url}/@${follower.username}`,
actor: `${config.url}/users/${follower._id}`,
object: followee.uri
});