iqdb fixes

This commit is contained in:
r888888888
2018-06-23 11:15:14 -07:00
parent 8f2f418613
commit 62235e215e
2 changed files with 4 additions and 4 deletions

View File

@@ -12,7 +12,7 @@ class IqdbProxy
def self.decorate_posts(json)
json.map do |x|
begin
x["post"] = Post.find(x["id"])
x["post"] = Post.find(x["post_id"])
x
rescue ActiveRecord::RecordNotFound
nil