diff --git a/contrib/frontends/django/nntpchan/nntpchan/frontend/models.py b/contrib/frontends/django/nntpchan/nntpchan/frontend/models.py index 89800d6..f6f82a5 100644 --- a/contrib/frontends/django/nntpchan/nntpchan/frontend/models.py +++ b/contrib/frontends/django/nntpchan/nntpchan/frontend/models.py @@ -97,6 +97,6 @@ class Post(models.Model): frag = util.hashid(self.msgid) return reverse('frontend:thread', args=[op]) + '#{}'.format(frag) - def bump(self): + def bump(self, last): if self.is_op(): - self.last_bumped = util.time_int(datetime.now()) + self.last_bumped = last diff --git a/contrib/frontends/django/nntpchan/nntpchan/views.py b/contrib/frontends/django/nntpchan/nntpchan/views.py index 882ec68..b9d0854 100644 --- a/contrib/frontends/django/nntpchan/nntpchan/views.py +++ b/contrib/frontends/django/nntpchan/nntpchan/views.py @@ -127,7 +127,7 @@ def webhook(request): 'subject': 'OP Not Found', 'newsgroup': group}, msgid=opmsgid) if bump: - op.bump() + op.bump(post.posted) op.save() except Exception as ex: