Add noter:<any|none> metatags.

This commit is contained in:
evazion
2017-04-25 18:04:27 -05:00
parent 641f56dc2a
commit 69d9cf3927
2 changed files with 16 additions and 3 deletions

View File

@@ -448,8 +448,15 @@ class Tag < ActiveRecord::Base
when "noter"
q[:noter_ids] ||= []
user_id = User.name_to_id($2)
q[:noter_ids] << user_id unless user_id.blank?
if $2 == "none"
q[:noter_ids] << "none"
elsif $2 == "any"
q[:noter_ids] << "any"
else
user_id = User.name_to_id($2)
q[:noter_ids] << user_id unless user_id.blank?
end
when "noteupdater"
q[:note_updater_ids] ||= []