diff --git a/app/templates/post/_post_reply_teaser.html b/app/templates/post/_post_reply_teaser.html index 2f1a149e..b1466542 100644 --- a/app/templates/post/_post_reply_teaser.html +++ b/app/templates/post/_post_reply_teaser.html @@ -3,8 +3,12 @@ disable_voting: Disable voting buttons (to prevent mass downvoting) no_collapse: Don't collapse for admin and moderator views #} -{% set collapsed = (post_reply.score <= current_user.reply_collapse_threshold) - and not no_collapse -%} +{% if current_user.is_authenticated -%} + {% set collapsed = (post_reply.score <= current_user.reply_collapse_threshold) + and not no_collapse -%} +{% else -%} + {% set collapsed = (post_reply.score <= -10) and not no_collapse -%} +{% endif -%}
{% if not post_reply.author.indexable -%}{% endif -%} {% if teaser -%} @@ -63,9 +67,11 @@ {% endif -%}
- {% with comment=dict(comment=post_reply) -%} - {% include "post/_reply_notification_toggle.html" -%} - {% endwith -%} + {% if current_user.is_authenticated -%} + {% with comment=dict(comment=post_reply) -%} + {% include "post/_reply_notification_toggle.html" -%} + {% endwith -%} + {% endif -%}
diff --git a/app/templates/user/show_profile.html b/app/templates/user/show_profile.html index 9018a99b..c1b3984c 100644 --- a/app/templates/user/show_profile.html +++ b/app/templates/user/show_profile.html @@ -122,7 +122,7 @@

Comments

{% for post_reply in post_replies.items %} - {% with teaser=True, disable_voting=(current_user.id != post_reply.author.id) %} + {% with teaser=True, disable_voting=not current_user.is_authenticated or (current_user.id != post_reply.author.id) %} {% include 'post/_post_reply_teaser.html' %} {% endwith %}