Skip to content

Commit

Permalink
Add support for short giphy.com urls (gph.is)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZogStriP committed Nov 21, 2016
1 parent e5e6f60 commit 1f5799a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/onebox/engine/giphy_onebox.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ 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
Expand All @@ -15,6 +15,7 @@ def to_html
</a>
HTML
end

end
end
end

0 comments on commit 1f5799a

Please sign in to comment.