Add extraction of image_url for oneboxed images. Fix search by images filter name.

This commit is contained in:
Jakub Macina
2017-06-09 13:16:50 +02:00
parent 76712da166
commit bf002e0873
5 changed files with 19 additions and 13 deletions

View File

@ -338,7 +338,7 @@ class Search
end
end
advanced_filter(/in:image/) do |posts|
advanced_filter(/with:images/) do |posts|
posts.where("posts.image_url IS NOT NULL")
end