mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
Link embeded topic to second post. They've already read the first.
This commit is contained in:
@ -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'
|
||||
|
Reference in New Issue
Block a user