black list tag fix
This commit is contained in:
@@ -4,8 +4,7 @@
|
||||
Danbooru.Blacklist.blacklists = [];
|
||||
|
||||
Danbooru.Blacklist.parse_entries = function() {
|
||||
var raw = $('<textarea/>').html(Danbooru.meta("blacklisted-tags") || "[]").val();
|
||||
var entries = ($.parseJSON(raw)).replace(/(rating:[qes])\w+/, "$1").split(/,/);
|
||||
var entries = j(Danbooru.meta("blacklisted-tags") || "[]").replace(/(rating:[qes])\w+/, "$1").split(/,/);
|
||||
$.each(entries, function(i, tags) {
|
||||
var blacklist = {
|
||||
"tags": tags,
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<meta name="current-user-id" content="<%= CurrentUser.id %>">
|
||||
<meta name="user-comment-threshold" content="<%= CurrentUser.comment_threshold %>">
|
||||
<% unless CurrentUser.user.blacklisted_tags.blank? %>
|
||||
<meta name="blacklisted-tags" content="<%= CurrentUser.user.blacklisted_tag_array.to_json %>">
|
||||
<meta name="blacklisted-tags" content="<%= CurrentUser.user.blacklisted_tags.gsub(/\n|\r/, ",") %>">
|
||||
<% end %>
|
||||
<% if flash[:notice] =~ /error/ %>
|
||||
<meta name="errors" content="true">
|
||||
|
||||
Reference in New Issue
Block a user