summaryrefslogtreecommitdiff
path: root/src/remote
diff options
context:
space:
mode:
authorMeiMei <30769358+mei23@users.noreply.github.com>2018-09-09 02:59:14 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2018-09-09 02:59:14 +0900
commitea4e2da58d09a664d79f51fa1b6b9d0592839dbf (patch)
treed7ca52a47c0dbddfd22a3877b13ad1809c2fe647 /src/remote
parentMerge branch 'master' into develop (diff)
downloadsharkey-ea4e2da58d09a664d79f51fa1b6b9d0592839dbf.tar.gz
sharkey-ea4e2da58d09a664d79f51fa1b6b9d0592839dbf.tar.bz2
sharkey-ea4e2da58d09a664d79f51fa1b6b9d0592839dbf.zip
Fix AP Announce detection (#2672)
Diffstat (limited to 'src/remote')
-rw-r--r--src/remote/activitypub/misc/get-note-html.ts3
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}`;