expunge: decrement upload and note/post update counts (fix #2062).

This commit is contained in:
evazion
2017-07-28 17:10:10 -05:00
committed by r888888888
parent 95854756b4
commit fd9dc6f647
6 changed files with 27 additions and 9 deletions

View File

@@ -147,8 +147,6 @@ class Note < ApplicationRecord
def create_version
return unless versioned_attributes_changed?
User.where(id: CurrentUser.id).update_all("note_update_count = note_update_count + 1")
CurrentUser.reload
if merge_version?
merge_version