FEATURE: stop updating last_posted_at on users for messages and whispers

This ensures we only update last_posted_at which is user facing for non messages
and non whispers.

We still update this date for secure categories, we do not revert it for
deleted posts.
This commit is contained in:
Sam Saffron
2019-10-31 09:01:26 +11:00
parent fc06cfa90b
commit d8f7f363cd
3 changed files with 31 additions and 12 deletions

View File

@ -526,7 +526,9 @@ class PostCreator
@user.user_stat.save!
@user.update(last_posted_at: @post.created_at)
if !@topic.private_message? && @post.post_type != Post.types[:whisper]
@user.update(last_posted_at: @post.created_at)
end
end
def create_post_notice