#1902: Support blacklisting posts by their pools
This commit is contained in:
@@ -107,6 +107,7 @@
|
|||||||
|
|
||||||
var $post = $(post);
|
var $post = $(post);
|
||||||
var tags = String($post.attr("data-tags")).match(/\S+/g) || [];
|
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("rating:" + $post.data("rating"));
|
||||||
tags.push("user:" + $post.attr("data-uploader").toLowerCase().replace(/ /g, "_"));
|
tags.push("user:" + $post.attr("data-uploader").toLowerCase().replace(/ /g, "_"));
|
||||||
$.each(String($post.data("flags")).match(/\S+/g) || [], function(i, v) {
|
$.each(String($post.data("flags")).match(/\S+/g) || [], function(i, v) {
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ class PostPresenter < Presenter
|
|||||||
id="post_#{post.id}"
|
id="post_#{post.id}"
|
||||||
data-id="#{post.id}"
|
data-id="#{post.id}"
|
||||||
data-tags="#{h(post.tag_string)}"
|
data-tags="#{h(post.tag_string)}"
|
||||||
|
data-pools="#{post.pool_string}"
|
||||||
data-uploader="#{h(post.uploader_name)}"
|
data-uploader="#{h(post.uploader_name)}"
|
||||||
data-rating="#{post.rating}"
|
data-rating="#{post.rating}"
|
||||||
data-width="#{post.image_width}"
|
data-width="#{post.image_width}"
|
||||||
|
|||||||
Reference in New Issue
Block a user