From bbe0765f38dbb7b8785d342acbee67e20ab73c56 Mon Sep 17 00:00:00 2001 From: Alek Ratzloff Date: Thu, 30 Jun 2022 18:58:43 -0700 Subject: [PATCH] Prevent bumping a thread when it's stickied This prevents all stickied threads from having their own bump order. We want stickies to all stay in the same order. Signed-off-by: Alek Ratzloff --- board/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/board/models.py b/board/models.py index 5fa5968..74f00ba 100644 --- a/board/models.py +++ b/board/models.py @@ -204,6 +204,7 @@ def post_created(sender, instance, created, **kwargs): instance.bump and instance.op.bump and instance.op.replies.count() < instance.board.autosink + and not instance.op.sticky ): instance.op.last_bump = timezone.now() instance.op.save()