Fix BigEmoji handling for permalinks

OR doesn't give us the right thing, but AND does.
pull/21833/head
Travis Ralston 2019-09-30 21:08:34 -06:00
parent 6b09c3e9e6
commit f903f431ed
1 changed files with 2 additions and 2 deletions

View File

@ -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:"))
);
}