summaryrefslogtreecommitdiff
path: root/src/remote/activitypub/renderer
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-11-09 22:19:43 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-11-09 22:19:43 +0900
commit5bcce97ff01119dbb6bf07bc953372e03971b4b6 (patch)
treec7cede9992450593fa5155af78de7b60127dbc97 /src/remote/activitypub/renderer
parent[Client] Fix bug (diff)
downloadsharkey-5bcce97ff01119dbb6bf07bc953372e03971b4b6.tar.gz
sharkey-5bcce97ff01119dbb6bf07bc953372e03971b4b6.tar.bz2
sharkey-5bcce97ff01119dbb6bf07bc953372e03971b4b6.zip
Fix bug
Diffstat (limited to 'src/remote/activitypub/renderer')
-rw-r--r--src/remote/activitypub/renderer/note.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/remote/activitypub/renderer/note.ts b/src/remote/activitypub/renderer/note.ts
index 2b834f9d28..ec66fe41ff 100644
--- a/src/remote/activitypub/renderer/note.ts
+++ b/src/remote/activitypub/renderer/note.ts
@@ -96,7 +96,7 @@ export default async function renderNote(note: INote, dive = true): Promise<any>
}
// 省略されたメンションのホストを復元する
- if (text != null) {
+ if (text != null && text != '') {
text = parseMfm(text).map(x => {
if (x.type == 'mention' && x.host == null) {
return `${x.content}@${config.host}`;