mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
Remove unnecessary user/topic load in PostCreator
This commit is contained in:
parent
3396e6fea3
commit
085b18577c
1 changed files with 2 additions and 2 deletions
|
@ -281,8 +281,8 @@ class PostCreator
|
|||
def track_topic
|
||||
return if @opts[:auto_track] == false
|
||||
|
||||
TopicUser.change(@post.user.id,
|
||||
@post.topic.id,
|
||||
TopicUser.change(@post.user_id,
|
||||
@topic.id,
|
||||
posted: true,
|
||||
last_read_post_number: @post.post_number,
|
||||
seen_post_count: @post.post_number)
|
||||
|
|
Loading…
Reference in a new issue