FIX: Don't update the last read post when disable jump reply is set

This commit is contained in:
Robin Ward 2016-06-08 14:08:19 -04:00
parent b9df18360d
commit baae2a4b7c

View file

@ -413,6 +413,7 @@ class PostCreator
def track_topic def track_topic
return if @opts[:auto_track] == false return if @opts[:auto_track] == false
unless @user.user_option.disable_jump_reply?
TopicUser.change(@post.user_id, TopicUser.change(@post.user_id,
@topic.id, @topic.id,
posted: true, posted: true,
@ -425,6 +426,7 @@ class PostCreator
user_id: @post.user_id, user_id: @post.user_id,
post_number: @post.post_number, post_number: @post.post_number,
msecs: 5000) msecs: 5000)
end
if @user.staged if @user.staged
TopicUser.auto_watch(@user.id, @topic.id) TopicUser.auto_watch(@user.id, @topic.id)