fixes #2494: Twitter bookmarklet: support uploading video

This commit is contained in:
r888888888
2015-08-27 14:56:25 -07:00
parent 03bc0ef78b
commit cbe627b01a
8 changed files with 17 additions and 11 deletions

View File

@@ -68,7 +68,7 @@ class PostPresenter < Presenter
def self.data_attributes(post)
%{
data-id="#{post.id}"
data-has-audio="#{post.has_tag?('audio')}"
data-has-sound="#{post.has_tag?('video_with_sound|flash_with_sound')}"
data-tags="#{h(post.tag_string)}"
data-pools="#{post.pool_string}"
data-uploader="#{h(post.uploader_name)}"