posts: fix noter:<name> metatag.

This commit is contained in:
evazion
2020-02-23 17:26:08 -06:00
parent cc9298cf46
commit 76259265de
+1 -1
View File
@@ -355,7 +355,7 @@ class PostQueryBuilder
elsif noter_id == "none"
relation = relation.where("posts.last_noted_at is null")
else
relation = relation.where("posts.id": Note.unscoped.where(creator_id: noter_id).select("post_id").distinct)
relation = relation.where("posts.id": NoteVersion.unscoped.where(version: 1, updater_id: noter_id).select(:post_id).distinct)
end
end
end