diff --git a/app/controllers/embed_controller.rb b/app/controllers/embed_controller.rb index bc1fbaea8..77f693046 100644 --- a/app/controllers/embed_controller.rb +++ b/app/controllers/embed_controller.rb @@ -36,7 +36,12 @@ class EmbedController < ApplicationController end elsif embed_url.present? - Jobs.enqueue(:retrieve_topic, user_id: current_user.try(:id), embed_url: embed_url, author_username: embed_username) + Jobs.enqueue(:retrieve_topic, + user_id: current_user.try(:id), + embed_url: embed_url, + author_username: embed_username, + referer: request.env['HTTP_REFERER'] + ) render 'loading' end