From cb57d3550d784422ae9332e6e7c57ac70ffa32df Mon Sep 17 00:00:00 2001 From: evazion Date: Sat, 25 Oct 2014 12:20:13 -0500 Subject: [PATCH] Include ugoira frames in post data attributes. --- app/views/posts/partials/show/_ugoira.html.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/posts/partials/show/_ugoira.html.erb b/app/views/posts/partials/show/_ugoira.html.erb index 59e5eb407..6c2ad70ae 100644 --- a/app/views/posts/partials/show/_ugoira.html.erb +++ b/app/views/posts/partials/show/_ugoira.html.erb @@ -16,7 +16,9 @@ "data-has-children" => post.has_children?, "data-has-active-children" => post.has_active_children?, "data-score" => post.score, - "data-fav-count" => post.fav_count + "data-fav-count" => post.fav_count, + "data-ugoira-frames" => post.pixiv_ugoira_frame_data.data.to_json, + "data-ugoira-content-type" => post.pixiv_ugoira_frame_data.content_type.to_json, ) %>