mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
FIX: Don't update the last read post when disable jump reply is set
This commit is contained in:
parent
b9df18360d
commit
baae2a4b7c
1 changed files with 12 additions and 10 deletions
|
@ -413,6 +413,7 @@ class PostCreator
|
|||
def track_topic
|
||||
return if @opts[:auto_track] == false
|
||||
|
||||
unless @user.user_option.disable_jump_reply?
|
||||
TopicUser.change(@post.user_id,
|
||||
@topic.id,
|
||||
posted: true,
|
||||
|
@ -425,6 +426,7 @@ class PostCreator
|
|||
user_id: @post.user_id,
|
||||
post_number: @post.post_number,
|
||||
msecs: 5000)
|
||||
end
|
||||
|
||||
if @user.staged
|
||||
TopicUser.auto_watch(@user.id, @topic.id)
|
||||
|
|
Loading…
Reference in a new issue