Merge pull request #4007 from evazion/fix-4004

Fix #4004: Add additional order by metatags for posts
This commit is contained in:
Albert Yi
2019-01-09 14:43:15 -08:00
committed by GitHub
13 changed files with 193 additions and 35 deletions

View File

@@ -33,7 +33,7 @@ class PostFlag < ApplicationRecord
end
def post_tags_match(query)
PostQueryBuilder.new(query).build(self.joins(:post))
where(post_id: PostQueryBuilder.new(query).build.reorder(""))
end
def resolved