Also increment author's post_count when backfilling

This commit is contained in:
freamon 2024-10-06 12:15:23 +00:00
parent be42d6eb6d
commit 75d5c821a0

View file

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