fixes #400
This commit is contained in:
@@ -29,7 +29,7 @@ class TagSubscription < ActiveRecord::Base
|
||||
|
||||
def process
|
||||
post_ids = tag_query_array.inject([]) do |all, tag|
|
||||
all += Post.tag_match(tag).limit(Danbooru.config.tag_subscription_post_limit / 3).select("posts.id").order("posts.id desc").map(&:id)
|
||||
all += Post.tag_match(tag).limit(Danbooru.config.tag_subscription_post_limit / 3).select("posts.id").order("posts.id DESC").map(&:id)
|
||||
end
|
||||
self.post_ids = post_ids.sort.reverse.slice(0, Danbooru.config.tag_subscription_post_limit).join(",")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user