diff --git a/app/assets/javascripts/blacklists.js b/app/assets/javascripts/blacklists.js index 2be852410..09db6e927 100644 --- a/app/assets/javascripts/blacklists.js +++ b/app/assets/javascripts/blacklists.js @@ -106,9 +106,9 @@ } var $post = $(post); - var tags = String($post.data("tags")).match(/\S+/g) || []; + var tags = String($post.attr("data-tags")).match(/\S+/g) || []; tags.push("rating:" + $post.data("rating")); - tags.push("user:" + $post.data("user")); + tags.push("user:" + $post.attr("data-uploader").toLowerCase().replace(/ /g, "_")); $.each(String($post.data("flags")).match(/\S+/g) || [], function(i, v) { tags.push("status:" + v); }); diff --git a/app/views/posts/partials/show/_image.html.erb b/app/views/posts/partials/show/_image.html.erb index 8c5069a58..79f482a98 100644 --- a/app/views/posts/partials/show/_image.html.erb +++ b/app/views/posts/partials/show/_image.html.erb @@ -1,2 +1,2 @@ -<%= image_tag(post.file_url_for(CurrentUser.user), :width => post.image_width_for(CurrentUser.user), :height => post.image_height_for(CurrentUser.user), :id => "image", "data-original-width" => post.image_width, "data-original-height" => post.image_height, "data-large-width" => post.large_image_width, "data-large-height" => post.large_image_height, "data-tags" => post.tag_string, "data-user" => post.uploader_name, "data-rating" => post.rating, "data-flags" => post.status_flags, "data-parent-id" => post.parent_id, "data-has-children" => post.has_children?, "data-score" => post.score, "data-fav-count" => post.fav_count) %> +<%= image_tag(post.file_url_for(CurrentUser.user), :width => post.image_width_for(CurrentUser.user), :height => post.image_height_for(CurrentUser.user), :id => "image", "data-original-width" => post.image_width, "data-original-height" => post.image_height, "data-large-width" => post.large_image_width, "data-large-height" => post.large_image_height, "data-tags" => post.tag_string, "data-uploader" => post.uploader_name, "data-rating" => post.rating, "data-flags" => post.status_flags, "data-parent-id" => post.parent_id, "data-has-children" => post.has_children?, "data-score" => post.score, "data-fav-count" => post.fav_count) %> diff --git a/app/views/posts/show.html.erb b/app/views/posts/show.html.erb index afa01998d..98a69dab4 100644 --- a/app/views/posts/show.html.erb +++ b/app/views/posts/show.html.erb @@ -40,7 +40,7 @@ <%= render "posts/partials/show/notices", :post => @post %> -
+
<%= @post.presenter.image_html(self) %>