# HG changeset patch # User neko259 # Date 2015-04-13 10:51:46 # Node ID f09532f11822b3f54cd6c7ffba77fb83b62f65cc # Parent 4006b8dc318749291f7e5dc21356cd6b888c5edf Update thread bumpable status and posts only if it is yet bumpable diff --git a/boards/models/post.py b/boards/models/post.py --- a/boards/models/post.py +++ b/boards/models/post.py @@ -347,7 +347,8 @@ class Post(models.Model, Viewable): if self.id: for thread in self.get_threads().all(): - thread.update_bump_status() + if thread.can_bump(): + thread.update_bump_status() thread.last_edit_time = self.last_edit_time thread.save(update_fields=['last_edit_time', 'bumpable'])