diff --git a/Changelog.md b/Changelog.md index 11e130de4..8572f3a15 100644 --- a/Changelog.md +++ b/Changelog.md @@ -10,6 +10,7 @@ * Pass the real values to stderr_path and stdout_path in unicorn.rb since it runs a case statement on them. * 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) +* 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'