Only generate tagged filenames for URLs on post show pages (#3597).

Don't generate tagged filenames for urls in the data attributes on
thumbnails, or in the /posts.json api.
This commit is contained in:
evazion
2018-04-05 14:03:41 -05:00
parent 14977397fb
commit 084fcd91ed
10 changed files with 28 additions and 19 deletions

View File

@@ -1,6 +1,6 @@
<%= content_tag(:object, :width => post.image_width, :height => post.image_height) do %>
<%= tag :params, :name => "movie", :value => post.file_url %>
<%= tag :embed, :src => post.file_url, :width => post.image_width, :height => post.image_height, :allowScriptAccess => "never" %>
<%= tag :params, :name => "movie", :value => post.tagged_file_url %>
<%= tag :embed, :src => post.tagged_file_url, :width => post.image_width, :height => post.image_height, :allowScriptAccess => "never" %>
<% end %>
<p><%= link_to "Save this flash (right click and save)", post.file_url %></p>
<p><%= link_to "Save this flash (right click and save)", post.tagged_file_url %></p>