0
0
Fork 0

Add animate custom emoji param to embed pages (#8507)

* Add animate custom emoji param to embed pages

* Rename param, use it for avatars and gifs

* Fix issues pointed by codeclimate and breaking test

* Ignore brakeman warning
This commit is contained in:
Renato "Lond" Cerqueira 2018-08-30 23:14:01 +02:00 committed by Eugen Rochko
parent 5b2b493a90
commit 11658d8653
8 changed files with 54 additions and 41 deletions

View file

@ -54,6 +54,7 @@ class StatusesController < ApplicationController
skip_session!
expires_in 180, public: true
response.headers['X-Frame-Options'] = 'ALLOWALL'
@autoplay = ActiveModel::Type::Boolean.new.cast(params[:autoplay])
render 'stream_entries/embed', layout: 'embedded'
end