0
0
Fork 0

Simplify the way the embed view is created (#1590)

* Add coverage for embedded status view

* Refactor embed view to eliminate @external_links variable
This commit is contained in:
Matt Jankowski 2017-04-12 10:12:42 -04:00 committed by Eugen
parent b352a8e5d4
commit dd1ae3b109
5 changed files with 25 additions and 7 deletions

View file

@ -27,8 +27,6 @@ class StreamEntriesController < ApplicationController
def embed
response.headers['X-Frame-Options'] = 'ALLOWALL'
@external_links = true
return gone if @stream_entry.activity.nil?
render layout: 'embedded'