diff options
| author | Aya Morisawa <AyaMorisawa4869@gmail.com> | 2019-01-30 15:00:05 +0900 |
|---|---|---|
| committer | Aya Morisawa <AyaMorisawa4869@gmail.com> | 2019-01-30 15:00:05 +0900 |
| commit | ca26edbfce9203539bc4f88f1f16a79180fbfbe0 (patch) | |
| tree | db580315a928a767cf68f12ac440d73a64fb341a /src/remote/activitypub/models/note.ts | |
| parent | Rename html to toHtml (diff) | |
| download | sharkey-ca26edbfce9203539bc4f88f1f16a79180fbfbe0.tar.gz sharkey-ca26edbfce9203539bc4f88f1f16a79180fbfbe0.tar.bz2 sharkey-ca26edbfce9203539bc4f88f1f16a79180fbfbe0.zip | |
Rename html-to-mfm to fromHtml
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 dd0083340c..f93e3d4c60 100644 --- a/src/remote/activitypub/models/note.ts +++ b/src/remote/activitypub/models/note.ts @@ -9,7 +9,7 @@ import { INote as INoteActivityStreamsObject, IObject } from '../type'; import { resolvePerson, updatePerson } from './person'; import { resolveImage } from './image'; import { IRemoteUser, IUser } from '../../../models/user'; -import htmlToMFM from '../../../mfm/html-to-mfm'; +import fromHtml from '../../../mfm/fromHtml'; import Emoji, { IEmoji } from '../../../models/emoji'; import { ITag } from './tag'; import { toUnicode } from 'punycode'; @@ -110,7 +110,7 @@ export async function createNote(value: any, resolver?: Resolver, silent = false const cw = note.summary === '' ? null : note.summary; // テキストのパース - const text = note._misskey_content ? note._misskey_content : htmlToMFM(note.content); + const text = note._misskey_content ? note._misskey_content : fromHtml(note.content); // vote if (reply && reply.poll && text != null) { |