fixes #2133
This commit is contained in:
@@ -106,7 +106,7 @@ class PostQueryBuilder
|
||||
q = Tag.parse_query(query_string)
|
||||
end
|
||||
|
||||
relation = Post.scoped
|
||||
relation = Post.where("true")
|
||||
|
||||
if q[:tag_count].to_i > Danbooru.config.tag_query_limit
|
||||
raise ::Post::SearchError.new("You cannot search for more than #{Danbooru.config.tag_query_limit} tags at a time")
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
module PostSets
|
||||
class Favorite < Base
|
||||
class Favorite < PostSets::Base
|
||||
attr_reader :user, :page, :favorites, :params
|
||||
|
||||
def initialize(user_id, page = 1, params = {})
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
module PostSets
|
||||
class Note < Post
|
||||
class Note < PostSets::Post
|
||||
attr_reader :params
|
||||
|
||||
def initialize(params)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
module PostSets
|
||||
class Pool < Base
|
||||
class Pool < PostSets::Base
|
||||
module ActiveRecordExtension
|
||||
attr_accessor :total_pages, :current_page
|
||||
end
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
module PostSets
|
||||
class Popular < Base
|
||||
class Popular < PostSets::Base
|
||||
attr_reader :date, :scale
|
||||
|
||||
def initialize(date, scale)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
module PostSets
|
||||
class Post < Base
|
||||
class Post < PostSets::Base
|
||||
attr_reader :tag_array, :page, :per_page, :raw
|
||||
|
||||
def initialize(tags, page = 1, per_page = nil, raw = false)
|
||||
|
||||
Reference in New Issue
Block a user