Add OEmbed iframe HTML, convert emojis on public pages, increase size of attachment thumbnails

This commit is contained in:
Eugen Rochko committed 2016-12-18 15:20:39 +01:00
1 parent 6de079a5af
commit aed25932b5
11 files changed
+72 -7

No files matched your search

+2 -2
View File
@@ -5,8 +5,8 @@ class Api::OembedController < ApiController
def show
@stream_entry = stream_entry_from_url(params[:url])
@width = [300, params[:maxwidth].to_i].min
@height = [200, params[:maxheight].to_i].min
@width = [300, params[:maxwidth].to_i].max
@height = [200, params[:maxheight].to_i].max
end
private