diff options
| author | MeiMei <30769358+mei23@users.noreply.github.com> | 2020-04-11 18:27:58 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-11 18:27:58 +0900 |
| commit | 9fcf94b1973f376400b05eaabf0e2ffcf25e296b (patch) | |
| tree | 478a6bd3a6e2f49f94407a8e7afaf6e31975860a /src/remote/activitypub/models/person.ts | |
| parent | Update package (diff) | |
| download | misskey-9fcf94b1973f376400b05eaabf0e2ffcf25e296b.tar.gz misskey-9fcf94b1973f376400b05eaabf0e2ffcf25e296b.tar.bz2 misskey-9fcf94b1973f376400b05eaabf0e2ffcf25e296b.zip | |
Fix url type of AP object #6231 (#6234)
Diffstat (limited to 'src/remote/activitypub/models/person.ts')
| -rw-r--r-- | src/remote/activitypub/models/person.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/remote/activitypub/models/person.ts b/src/remote/activitypub/models/person.ts index 80ba6b514a..91b1c5cd60 100644 --- a/src/remote/activitypub/models/person.ts +++ b/src/remote/activitypub/models/person.ts @@ -3,7 +3,7 @@ import * as promiseLimit from 'promise-limit'; import config from '../../../config'; import Resolver from '../resolver'; import { resolveImage } from './image'; -import { isCollectionOrOrderedCollection, isCollection, IPerson, getApId, IObject, isPropertyValue, IApPropertyValue } from '../type'; +import { isCollectionOrOrderedCollection, isCollection, IPerson, getApId, getOneApHrefNullable, IObject, isPropertyValue, IApPropertyValue } from '../type'; import { fromHtml } from '../../../mfm/fromHtml'; import { htmlToMfm } from '../misc/html-to-mfm'; import { resolveNote, extractEmojis } from './note'; @@ -166,7 +166,7 @@ export async function createPerson(uri: string, resolver?: Resolver): Promise<Us await transactionalEntityManager.save(new UserProfile({ userId: user.id, description: person.summary ? htmlToMfm(person.summary, person.tag) : null, - url: person.url, + url: getOneApHrefNullable(person.url), fields, userHost: host })); @@ -353,7 +353,7 @@ export async function updatePerson(uri: string, resolver?: Resolver | null, hint }); await UserProfiles.update({ userId: exist.id }, { - url: person.url, + url: getOneApHrefNullable(person.url), fields, description: person.summary ? htmlToMfm(person.summary, person.tag) : null, }); |