Make Embedding work on Tinyboard-linkified links.
This commit is contained in:
parent
f8969bbc1e
commit
b489f059a1
@ -14,7 +14,7 @@ Linkify =
|
|||||||
node: ->
|
node: ->
|
||||||
return Embedding.events @ if @isClone
|
return Embedding.events @ if @isClone
|
||||||
return unless Linkify.regString.test @info.comment
|
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'
|
$.addClass link, 'linkify'
|
||||||
Embedding.process link, @
|
Embedding.process link, @
|
||||||
links = Linkify.process @nodes.comment
|
links = Linkify.process @nodes.comment
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user