Added search for posts with the embedded flag enabled

This commit is contained in:
BrokenEagle
2020-01-23 03:29:12 +00:00
parent 9d71c77524
commit d9e5b94838
3 changed files with 14 additions and 1 deletions

View File

@@ -440,6 +440,12 @@ class PostQueryBuilder
relation = relation.where("posts.is_status_locked = FALSE")
end
if q[:embedded] == "true"
relation = relation.bit_flags_match(:has_embedded_notes, true)
elsif q[:embedded] == "false"
relation = relation.bit_flags_match(:has_embedded_notes, false)
end
relation = add_tag_string_search_relation(q[:tags], relation)
if q[:ordpool].present?