fixes #1011
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
class Tag < ActiveRecord::Base
|
||||
METATAGS = "-user|user|-approver|approver|commenter|comm|noter|-pool|pool|-fav|fav|sub|md5|-rating|rating|width|height|mpixels|score|filesize|source|id|date|order|-status|status|tagcount|gentags|arttags|chartags|copytags|parent|pixiv"
|
||||
METATAGS = "-user|user|-approver|approver|commenter|comm|noter|-pool|pool|-fav|fav|sub|md5|-rating|rating|-locked|locked|width|height|mpixels|score|filesize|source|id|date|order|-status|status|tagcount|gentags|arttags|chartags|copytags|parent|pixiv"
|
||||
attr_accessible :category
|
||||
has_one :wiki_page, :foreign_key => "name", :primary_key => "title"
|
||||
|
||||
@@ -313,6 +313,12 @@ class Tag < ActiveRecord::Base
|
||||
when "rating"
|
||||
q[:rating] = $2
|
||||
|
||||
when "-locked"
|
||||
q[:locked_negated] = $2
|
||||
|
||||
when "locked"
|
||||
q[:locked] = $2
|
||||
|
||||
when "id"
|
||||
q[:post_id] = parse_helper($2)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user