summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormei23 <m@m544.net>2018-09-01 16:55:11 +0900
committermei23 <m@m544.net>2018-09-01 20:23:01 +0900
commit15eaebe52228afa1acbe96137b10a885e39943b1 (patch)
tree539e0444a1268ff9167826be9c54aa232ea3597f /src
parentAdd missing updatePerson properties (diff)
downloadmisskey-15eaebe52228afa1acbe96137b10a885e39943b1.tar.gz
misskey-15eaebe52228afa1acbe96137b10a885e39943b1.tar.bz2
misskey-15eaebe52228afa1acbe96137b10a885e39943b1.zip
updatePersonで再割り当てを考慮する
Diffstat (limited to 'src')
-rw-r--r--src/remote/activitypub/models/person.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/remote/activitypub/models/person.ts b/src/remote/activitypub/models/person.ts
index 0246798616..9c770141a3 100644
--- a/src/remote/activitypub/models/person.ts
+++ b/src/remote/activitypub/models/person.ts
@@ -293,7 +293,12 @@ export async function updatePerson(uri: string, resolver?: Resolver): Promise<vo
endpoints: person.endpoints,
isBot: object.type == 'Service',
isCat: (person as any).isCat === true ? true : false,
- isLocked: person.manuallyApprovesFollowers
+ isLocked: person.manuallyApprovesFollowers,
+ createdAt: Date.parse(person.published) || null,
+ publicKey: {
+ id: person.publicKey.id,
+ publicKeyPem: person.publicKey.publicKeyPem
+ },
}
});
}