# HG changeset patch # User neko259 # Date 2016-10-13 09:31:19 # Node ID f5ce87157e496bb1c52b06936b0f7b2964c38734 # Parent c9facaf1031f8bc4dd87cb5aeb959ccdda41c46f Include poster IP in thead loading because it is shown for moderator diff --git a/boards/models/thread.py b/boards/models/thread.py --- a/boards/models/thread.py +++ b/boards/models/thread.py @@ -189,8 +189,7 @@ class Thread(models.Model): """ Gets replies with only fields that are used for viewing. """ - return self.get_replies().defer('poster_ip', 'text', 'last_edit_time', - 'version') + return self.get_replies().defer('text', 'last_edit_time', 'version') def get_top_level_replies(self) -> QuerySet: return self.get_replies().exclude(refposts__threads__in=[self])