From b489f059a19ba9f94ef845cc5b4f1c27a67b0500 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Wed, 24 Jan 2018 00:52:32 -0800 Subject: [PATCH] Make Embedding work on Tinyboard-linkified links. --- src/Linkification/Linkify.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Linkification/Linkify.coffee b/src/Linkification/Linkify.coffee index b0213eed1..9f2c3ec9f 100644 --- a/src/Linkification/Linkify.coffee +++ b/src/Linkification/Linkify.coffee @@ -14,7 +14,7 @@ Linkify = node: -> return Embedding.events @ if @isClone return unless Linkify.regString.test @info.comment - for link in $$ 'a', @nodes.comment when ImageHost.test link.hostname + for link in $$ 'a', @nodes.comment when ImageHost.test(link.hostname) or /\bnofollow\b/.test(link.rel) $.addClass link, 'linkify' Embedding.process link, @ links = Linkify.process @nodes.comment