diff options
| author | MeiMei <30769358+mei23@users.noreply.github.com> | 2018-09-09 02:59:14 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2018-09-09 02:59:14 +0900 |
| commit | ea4e2da58d09a664d79f51fa1b6b9d0592839dbf (patch) | |
| tree | d7ca52a47c0dbddfd22a3877b13ad1809c2fe647 /src/remote/activitypub | |
| parent | Merge branch 'master' into develop (diff) | |
| download | sharkey-ea4e2da58d09a664d79f51fa1b6b9d0592839dbf.tar.gz sharkey-ea4e2da58d09a664d79f51fa1b6b9d0592839dbf.tar.bz2 sharkey-ea4e2da58d09a664d79f51fa1b6b9d0592839dbf.zip | |
Fix AP Announce detection (#2672)
Diffstat (limited to 'src/remote/activitypub')
| -rw-r--r-- | src/remote/activitypub/misc/get-note-html.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/remote/activitypub/misc/get-note-html.ts b/src/remote/activitypub/misc/get-note-html.ts index 8df440930b..f92e91c34e 100644 --- a/src/remote/activitypub/misc/get-note-html.ts +++ b/src/remote/activitypub/misc/get-note-html.ts @@ -4,9 +4,8 @@ import parse from '../../../mfm/parse'; import config from '../../../config'; export default function(note: INote) { - if (note.text == null) return null; - let html = toHtml(parse(note.text), note.mentionedRemoteUsers); + if (html == null) html = ''; if (note.poll != null) { const url = `${config.url}/notes/${note._id}`; |