posts: refactor hardcoded ratings.
Refactor ratings to not be hardcoded in various places. Make it so all ratings are defined in Post::RATINGS. Also make it so that you can search multiple ratings at once with `rating:q,e`.
This commit is contained in:
@@ -33,7 +33,7 @@ Blacklist.parse_entry = function(string) {
|
||||
}
|
||||
|
||||
Blacklist.parse_entries = function() {
|
||||
var entries = (Utility.meta("blacklisted-tags") || "nozomiisthebestlovelive").replace(/(rating:[qes])\w+/ig, "$1").toLowerCase().split(/,/);
|
||||
var entries = (Utility.meta("blacklisted-tags") || "nozomiisthebestlovelive").replace(/(rating:\w)\w+/ig, "$1").toLowerCase().split(/,/);
|
||||
entries = entries.filter(e => e.trim() !== "");
|
||||
|
||||
entries.forEach(function(tags) {
|
||||
|
||||
Reference in New Issue
Block a user