Remove useless code
This commit is contained in:
@@ -98,15 +98,7 @@
|
|||||||
tags.push("rating:" + $post.data("rating"));
|
tags.push("rating:" + $post.data("rating"));
|
||||||
tags.push("user:" + $post.data("user"));
|
tags.push("user:" + $post.data("user"));
|
||||||
|
|
||||||
if (blacklist.require.length > 0 || blacklist.exclude.length > 0) {
|
return Danbooru.is_subset(tags, blacklist.require) && !Danbooru.intersect(tags, blacklist.exclude).length;
|
||||||
if (blacklist.require.length === 0 || Danbooru.is_subset(tags, blacklist.require)) {
|
|
||||||
if (blacklist.exclude.length === 0 || (!Danbooru.intersect(tags, blacklist.exclude).length)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Danbooru.Blacklist.post_hide = function(post) {
|
Danbooru.Blacklist.post_hide = function(post) {
|
||||||
|
|||||||
Reference in New Issue
Block a user