mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Update draft count when sequence is increased (#13940)
* FIX: Update draft count when sequence is increased Sometimes users ended up having a draft count higher than the actual number of drafts. * FIX: Do not update draft count twice The call to DraftSequence.next! above already does it.
This commit is contained in:
@@ -229,7 +229,6 @@ class PostCreator
|
||||
@post.topic.reload
|
||||
|
||||
publish
|
||||
UserStat.update_draft_count(@user.id)
|
||||
|
||||
track_latest_on_category
|
||||
enqueue_jobs unless @opts[:skip_jobs]
|
||||
|
||||
Reference in New Issue
Block a user