1
0
Fork 0
mirror of https://github.com/paricafe/misskey.git synced 2025-03-24 14:29:26 -05:00

Use id instead of username

Because username is mutable. id is immutable!
This commit is contained in:
syuilo 2018-03-30 00:00:19 +09:00 committed by GitHub
parent 228d3141a7
commit 4c0b48af5e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -306,7 +306,7 @@ export const packForAp = (
if (!_user) return reject('invalid user arg.');
const userUrl = `${config.url}/@${_user.username}`;
const userUrl = `${config.url}/@@${_user._id}`;
resolve({
"@context": ["https://www.w3.org/ns/activitystreams", {