Embed links to images/webms on 4chan.

This commit is contained in:
ccd0 2015-10-03 20:46:41 -07:00
parent 2cb2984331
commit 4626b90125

View File

@ -18,6 +18,9 @@ Linkify =
node: ->
return Embedding.events @ if @isClone
return unless Linkify.regString.test @info.comment
for link in $$ 'a[href^="http://i.4cdn.org/"], a[href^="https://i.4cdn.org/"]', @nodes.comment
$.addClass link, 'linkify'
Embedding.process link, @
links = Linkify.process @nodes.comment
Embedding.process link, @ for link in links
return