lib/onebox/engine/giphy_onebox.rb in onebox-1.5.64 vs lib/onebox/engine/giphy_onebox.rb in onebox-1.5.65

- old
+ new

@@ -2,19 +2,20 @@ module Engine class GiphyOnebox include Engine include StandardEmbed - matches_regexp(/^https?:\/\/giphy\.com\/gifs\//) + matches_regexp(/^https?:\/\/(giphy\.com\/gifs|gph\.is)\//) def to_html oembed = get_oembed <<-HTML <a href="#{oembed[:url]}" target="_blank"> <img src="#{oembed[:image]}" width="#{oembed[:width]}" height="#{oembed[:height]}"> </a> HTML end + end end end