diff --git a/Changelog.md b/Changelog.md index 38d420ca1..8d1f88ec5 100644 --- a/Changelog.md +++ b/Changelog.md @@ -11,6 +11,7 @@ * Decode tag name before passing it into a TagFollowingAction [#4027](https://github.com/diaspora/diaspora/issues/4027) * Fix reshares in single post-view [#4056](https://github.com/diaspora/diaspora/issues/4056) * Fix mobile view of deleted reshares. [#4063](https://github.com/diaspora/diaspora/issues/4063) +* Hide comment button in the mobile view when not signed in. [#4065](https://github.com/diaspora/diaspora/issues/4065) ## Refactor diff --git a/app/views/shared/_stream_element.mobile.haml b/app/views/shared/_stream_element.mobile.haml index 1796df185..70658b926 100644 --- a/app/views/shared/_stream_element.mobile.haml +++ b/app/views/shared/_stream_element.mobile.haml @@ -47,5 +47,6 @@ = render :partial => 'comments/comment', :collection => post.comments, :locals => {:post => post} %li.comment.add_comment_bottom_link_container - = link_to t('comments.new_comment.comment'), new_post_comment_path(post), :class => 'add_comment_bottom_link btn comment_action inactive' + - if user_signed_in? + = link_to t('comments.new_comment.comment'), new_post_comment_path(post), :class => 'add_comment_bottom_link btn comment_action inactive'