Archived
1
0

update bump logic

This commit is contained in:
Jeff Becker 2016-11-07 12:42:26 -05:00
parent 78dccbfd61
commit 774b2a5e50
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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: