fix for non existent user metatag searches, fixes for note styling

This commit is contained in:
albert
2013-02-21 13:34:43 -05:00
parent 2201e03604
commit 0ca97d4c00
2 changed files with 4 additions and 1 deletions

View File

@@ -241,6 +241,7 @@ class Tag < ActiveRecord::Base
when "user"
q[:uploader_id] = User.name_to_id($2)
q[:uploader_id] = -1 if q[:uploader_id].nil?
when "-approver"
q[:approver_id_neg] ||= []
@@ -248,6 +249,7 @@ class Tag < ActiveRecord::Base
when "approver"
q[:approver_id] = User.name_to_id($2)
q[:approver_id] = -1 if q[:approver_id].nil?
when "-pool"
q[:tags][:exclude] << "pool:#{Pool.name_to_id($2)}"