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 @@ -87,9 +87,11 @@ class PostManager(models.Manager): thread = boards.models.thread.Thread.objects.create( bump_time=posting_time, last_edit_time=posting_time) list(map(thread.tags.add, tags)) - new_thread = True + boards.models.thread.Thread.objects.process_oldest_threads() else: - new_thread = False + thread.last_edit_time = posting_time + thread.bump() + thread.save() pre_text = Parser().preparse(text) @@ -108,13 +110,6 @@ class PostManager(models.Manager): if image: post.images.add(PostImage.objects.create_with_hash(image)) - if new_thread: - boards.models.thread.Thread.objects.process_oldest_threads() - else: - thread.last_edit_time = posting_time - thread.bump() - thread.save() - post.build_url() post.connect_replies() post.connect_threads(opening_posts)