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/note.ts | |
| parent | Update package (diff) | |
| download | sharkey-9fcf94b1973f376400b05eaabf0e2ffcf25e296b.tar.gz sharkey-9fcf94b1973f376400b05eaabf0e2ffcf25e296b.tar.bz2 sharkey-9fcf94b1973f376400b05eaabf0e2ffcf25e296b.zip | |
Fix url type of AP object #6231 (#6234)
Diffstat (limited to 'src/remote/activitypub/models/note.ts')
| -rw-r--r-- | src/remote/activitypub/models/note.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/remote/activitypub/models/note.ts b/src/remote/activitypub/models/note.ts index a149660ccb..1556307670 100644 --- a/src/remote/activitypub/models/note.ts +++ b/src/remote/activitypub/models/note.ts @@ -17,7 +17,7 @@ import { deliverQuestionUpdate } from '../../../services/note/polls/update'; import { extractDbHost, toPuny } from '../../../misc/convert-host'; import { Notes, Emojis, Polls, MessagingMessages } from '../../../models'; import { Note } from '../../../models/entities/note'; -import { IObject, getOneApId, getApId, validPost, IPost, isEmoji } from '../type'; +import { IObject, getOneApId, getApId, getOneApHrefNullable, validPost, IPost, isEmoji } from '../type'; import { Emoji } from '../../../models/entities/emoji'; import { genId } from '../../../misc/gen-id'; import { fetchMeta } from '../../../misc/fetch-meta'; @@ -282,7 +282,7 @@ export async function createNote(value: string | IObject, resolver?: Resolver, s apEmojis, poll, uri: note.id, - url: note.url, + url: getOneApHrefNullable(note.url), }, silent); } |