Browse Source

Update last post date on forum when auto-merge occurs.

Ralfp 12 years ago
parent
commit
32b8735b9a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      misago/threads/views/posting.py

+ 2 - 0
misago/threads/views/posting.py

@@ -181,6 +181,8 @@ class PostingView(BaseView):
                         post.save(force_update=True)
                         post.save(force_update=True)
                         thread.last = now
                         thread.last = now
                         thread.save(force_update=True)
                         thread.save(force_update=True)
+                        self.forum.last = now
+                        self.forum.save(force_update=True)
                         # Ignore rest of posting action
                         # Ignore rest of posting action
                         request.messages.set_flash(Message(_("Your reply has been added to previous one.")), 'success', 'threads_%s' % post.pk)
                         request.messages.set_flash(Message(_("Your reply has been added to previous one.")), 'success', 'threads_%s' % post.pk)
                         return self.redirect_to_post(post)
                         return self.redirect_to_post(post)