From 99f42cb6433ce81fd91344bb7c87e66af07a44a1 Mon Sep 17 00:00:00 2001 From: Sayed Date: Mon, 16 Mar 2015 22:03:23 +0200 Subject: [PATCH] fix missing reshares count on mobile stream --- app/views/comments/index.mobile.haml | 4 ++++ app/views/shared/_stream_element.mobile.haml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/views/comments/index.mobile.haml b/app/views/comments/index.mobile.haml index 76dde1db8..3b604ee3c 100644 --- a/app/views/comments/index.mobile.haml +++ b/app/views/comments/index.mobile.haml @@ -1,5 +1,9 @@ .comment_container .post_stats + - if @post.public? + %span.reshare_count + = @post.reshares.size + %span.comment_count = @post.comments.size %span.like_count diff --git a/app/views/shared/_stream_element.mobile.haml b/app/views/shared/_stream_element.mobile.haml index 18c5bf68e..5867cf346 100644 --- a/app/views/shared/_stream_element.mobile.haml +++ b/app/views/shared/_stream_element.mobile.haml @@ -33,7 +33,7 @@ .comment_container .post_stats - if post.public? - %span.comment_count + %span.reshare_count = post.reshares.size %span.comment_count