add uploader-id and top-tagger-id data attrs to post previews
This commit is contained in:
@@ -147,7 +147,11 @@
|
||||
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());
|
||||
if ($post.attr("data-uploader")) {
|
||||
tags.push("user:" + $post.attr("data-uploader").toLowerCase());
|
||||
}
|
||||
tags.push("uploaderid:" + $post.attr("data-uploader-id"));
|
||||
tags.push("toptaggerid:" + $post.attr("data-top-tagger"));
|
||||
$.each(String($post.data("flags")).match(/\S+/g) || [], function(i, v) {
|
||||
tags.push("status:" + v);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user