diff --git a/lib/post_creator.rb b/lib/post_creator.rb index dfe34c392..6ae33ebf9 100644 --- a/lib/post_creator.rb +++ b/lib/post_creator.rb @@ -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)