Remove unnecessary user/topic load in PostCreator

This commit is contained in:
riking 2014-08-28 22:07:40 -07:00
parent 3396e6fea3
commit 085b18577c

View file

@ -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)