fix for iqdb queries

This commit is contained in:
Albert Yi
2016-12-02 13:06:34 -08:00
parent a358247c1c
commit 8e5331d234
3 changed files with 4 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
var html = '';
<% if @results.any? %>
<% @results.each do |match| %>
html += '<%= j PostPresenter.preview(Post.find(match.post_id), :tags => "status:any") %>';
html += '<%= j PostPresenter.preview(Post.find(match["post_id"]), :tags => "status:any") %>';
<% end %>
<% else %>
html += '<p>No matches found</p>';