mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-02-02 16:21:32 -08:00
avoid StaleDataError
This commit is contained in:
parent
122941b696
commit
eedaddd851
1 changed files with 1 additions and 0 deletions
|
@ -1891,6 +1891,7 @@ class PostReply(db.Model):
|
|||
effect=effect)
|
||||
self.author.reputation += effect
|
||||
db.session.add(vote)
|
||||
db.session.commit()
|
||||
user.last_seen = utcnow()
|
||||
self.ranking = PostReply.confidence(self.up_votes, self.down_votes)
|
||||
user.recalculate_attitude()
|
||||
|
|
Loading…
Add table
Reference in a new issue