FIX: Don't update the last poster when a whisper is made

This commit is contained in:
Robin Ward
2015-09-22 12:19:02 -04:00
parent e65ddc6c25
commit 9f89aefdd3
2 changed files with 5 additions and 1 deletions

View File

@ -273,6 +273,8 @@ class PostCreator
end
def update_topic_stats
return if @post.post_type == Post.types[:whisper]
attrs = {
last_posted_at: @post.created_at,
last_post_user_id: @post.user_id,