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