mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-02-02 16:21:32 -08:00
Also increment author's post_count when backfilling
This commit is contained in:
parent
be42d6eb6d
commit
75d5c821a0
1 changed files with 1 additions and 0 deletions
|
@ -945,6 +945,7 @@ def post_json_to_model(activity_log, post_json, user, community) -> Post:
|
|||
post.image = image
|
||||
db.session.add(post)
|
||||
community.post_count += 1
|
||||
user.post_count += 1
|
||||
activity_log.result = 'success'
|
||||
db.session.commit()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue