From 65961bc15ba33151e6a2ac6da84c33e2af330af0 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 5 Nov 2018 19:20:35 +0900 Subject: Refactoring & 設定でTwemojiを使うかどうか切り替えられるように MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/remote/activitypub/misc/get-emoji-names.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/remote/activitypub/misc') diff --git a/src/remote/activitypub/misc/get-emoji-names.ts b/src/remote/activitypub/misc/get-emoji-names.ts index f744d02fed..7dd634a65e 100644 --- a/src/remote/activitypub/misc/get-emoji-names.ts +++ b/src/remote/activitypub/misc/get-emoji-names.ts @@ -2,5 +2,5 @@ import parse from '../../../mfm/parse'; export default function(text: string) { if (!text) return []; - return parse(text).filter(t => t.type === 'emoji').map(t => (t as any).emoji); + return parse(text).filter(t => t.type === 'emoji' && t.name).map(t => (t as any).name); } -- cgit v1.2.3-freya