mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 07:56:02 +08:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user