fix for tag blacklists, typo 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 %>">
|
||||
<meta name="blacklisted-tags" content="<%= CurrentUser.user.blacklisted_tag_array.to_json %>">
|
||||
<% end %>
|
||||
<% if flash[:notice] =~ /error/ %>
|
||||
<meta name="errors" content="true">
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<tags type="array">
|
||||
<% @tags.each do |tag| %>
|
||||
<tag name="<%= tag.name %>" id="<%= tag.id %>" ambiguous="false" created_at="<%= tag.created_at.strftime('%Y-%m-%d %H:%M') %>" count="<%= tag.post_count %>" type="<%= tag.category %>"></user>
|
||||
<tag name="<%= tag.name %>" id="<%= tag.id %>" ambiguous="false" created_at="<%= tag.created_at.try(:strftime, '%Y-%m-%d %H:%M') %>" count="<%= tag.post_count %>" type="<%= tag.category %>"></user>
|
||||
<% end %>
|
||||
</tags>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
<div class="input">
|
||||
<label for="search_category">Category</label>
|
||||
<%= select "search", "category", Tag.canonical_tag_category_mapping.to_a %>
|
||||
<%= select "search", "category", Danbooru.config.canonical_tag_category_mapping.to_a %>
|
||||
</div>
|
||||
|
||||
<div class="input">
|
||||
|
||||
Reference in New Issue
Block a user