From 093557931667bf896bfd6c3917aff72c7d019fcc Mon Sep 17 00:00:00 2001 From: Matt Lee Date: Mon, 8 Feb 2016 16:17:25 -0500 Subject: [PATCH] Archived Posts: Don't show reply link on archived posts --- r2/r2/lib/pages/things.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/r2/r2/lib/pages/things.py b/r2/r2/lib/pages/things.py index eda82e799..8b9fc7f69 100644 --- a/r2/r2/lib/pages/things.py +++ b/r2/r2/lib/pages/things.py @@ -206,6 +206,9 @@ class CommentButtons(PrintableButtons): show_delete = is_author and delete and not thing._deleted suppress_reply_buttons = getattr(thing, 'suppress_reply_buttons', False) + if thing.link.archived: + suppress_reply_buttons = True + show_distinguish = (is_author and (thing.can_ban or # Moderator distinguish c.user.employee or # Admin distinguish -- 2.11.4.GIT