# HG changeset patch # User neko259 # Date 2016-10-13 09:27:13 # Node ID c9facaf1031f8bc4dd87cb5aeb959ccdda41c46f # Parent cd0ada52e38122debc3fe0d178146d5fe12d79ea If thread is specified in the post template, do not load it again diff --git a/boards/models/post/__init__.py b/boards/models/post/__init__.py --- a/boards/models/post/__init__.py +++ b/boards/models/post/__init__.py @@ -169,7 +169,7 @@ class Post(models.Model, Viewable): Gets the parameters required for viewing the post based on the arguments given and the post itself. """ - thread = self.get_thread() + thread = kwargs.get('thread') or self.get_thread() css_classes = [CSS_CLS_POST] if thread.is_archived():