From f903f431ed63d8af01114f12b4ad93d65045ea7d Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Mon, 30 Sep 2019 21:08:34 -0600 Subject: [PATCH] Fix BigEmoji handling for permalinks OR doesn't give us the right thing, but AND does. --- src/HtmlUtils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/HtmlUtils.js b/src/HtmlUtils.js index e1bd85a7bb..7a212b2497 100644 --- a/src/HtmlUtils.js +++ b/src/HtmlUtils.js @@ -451,8 +451,8 @@ export function bodyToHtml(content, highlights, opts={}) { // now, so we just check for an HTTP-looking thing. ( content.formatted_body == undefined || - !content.formatted_body.includes("http:") || - !content.formatted_body.includes("https:") + (!content.formatted_body.includes("http:") && + !content.formatted_body.includes("https:")) ); }