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