#1902: Support blacklisting posts by their pools

This commit is contained in:
Toks
2013-07-29 00:01:47 -04:00
parent 6fccb8ba69
commit 72a74d2eba
2 changed files with 2 additions and 0 deletions

View File

@@ -107,6 +107,7 @@
var $post = $(post);
var tags = String($post.attr("data-tags")).match(/\S+/g) || [];
tags = tags.concat(String($post.attr("data-pools")).match(/\S+/g) || []);
tags.push("rating:" + $post.data("rating"));
tags.push("user:" + $post.attr("data-uploader").toLowerCase().replace(/ /g, "_"));
$.each(String($post.data("flags")).match(/\S+/g) || [], function(i, v) {

View File

@@ -42,6 +42,7 @@ class PostPresenter < Presenter
id="post_#{post.id}"
data-id="#{post.id}"
data-tags="#{h(post.tag_string)}"
data-pools="#{post.pool_string}"
data-uploader="#{h(post.uploader_name)}"
data-rating="#{post.rating}"
data-width="#{post.image_width}"