Add noteupdater:, update user profile links

fixes #1827, fixes #1397
This commit is contained in:
Toks
2013-12-07 22:06:20 -05:00
parent 81aa294b38
commit 468c0c7b63
4 changed files with 17 additions and 13 deletions

View File

@@ -237,6 +237,13 @@ class PostQueryBuilder
has_constraints!
end
if q[:note_updater_ids]
q[:note_updater_ids].each do |note_updater_id|
relation = relation.where(:id => NoteVersion.where("updater_id = ?", note_updater_id).select("post_id").uniq)
end
has_constraints!
end
if q[:artcomm_ids]
q[:artcomm_ids].each do |artcomm_id|
relation = relation.where(:id => ArtistCommentaryVersion.where("updater_id = ?", artcomm_id).select("post_id").uniq)