Merge branch 'develop'

This commit is contained in:
syuilo
2019-04-21 06:52:28 +09:00
5 changed files with 48 additions and 11 deletions

View File

@ -22,5 +22,5 @@ function getRandom() {
}
export function genMeid(date: Date): string {
return 'f' + getTime(date.getTime()) + getRandom();
return getTime(date.getTime()) + getRandom();
}

View File

@ -318,11 +318,7 @@ export async function updatePerson(uri: string, resolver?: Resolver | null, hint
sharedInbox: person.sharedInbox || (person.endpoints ? person.endpoints.sharedInbox : undefined),
featured: person.featured,
emojis: emojiNames,
description: person.summary ? fromHtml(person.summary) : null,
name: person.name,
url: person.url,
endpoints: person.endpoints,
fields,
tags,
isBot: object.type == 'Service',
isCat: (person as any).isCat === true,
@ -350,6 +346,9 @@ export async function updatePerson(uri: string, resolver?: Resolver | null, hint
});
await UserProfiles.update({ userId: exist.id }, {
url: person.url,
fields,
description: person.summary ? fromHtml(person.summary) : null,
twitterUserId: services.twitter.userId,
twitterScreenName: services.twitter.screenName,
githubId: services.github.id,