Link embeded topic to second post. They've already read the first.

This commit is contained in:
Robin Ward
2014-01-02 11:59:20 -05:00
parent 15faa01178
commit 01be681a95
2 changed files with 3 additions and 2 deletions

View File

@ -11,6 +11,7 @@ class EmbedController < ApplicationController
if topic_id
@topic_view = TopicView.new(topic_id, current_user, {best: 5})
@second_post_url = "#{@topic_view.topic.url}/2"
else
Jobs.enqueue(:retrieve_topic, user_id: current_user.try(:id), embed_url: embed_url)
render 'loading'