blacklist js fixes
This commit is contained in:
@@ -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_tags.gsub(/\r\n|\r|\n/, ",") %>">
|
||||
<meta name="blacklisted-tags" content="<%= CurrentUser.user.blacklisted_tags.gsub(/(?:\r|\n)+/, ",") %>">
|
||||
<% end %>
|
||||
<% if flash[:notice] =~ /error/ %>
|
||||
<meta name="errors" content="true">
|
||||
|
||||
Reference in New Issue
Block a user