update bump logic
This commit is contained in:
parent
78dccbfd61
commit
774b2a5e50
@ -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
|
||||
|
@ -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:
|
||||
|
Reference in New Issue
Block a user