mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 15:51:05 +08:00
more logging, add referer
This commit is contained in:
@ -36,7 +36,12 @@ class EmbedController < ApplicationController
|
|||||||
end
|
end
|
||||||
|
|
||||||
elsif embed_url.present?
|
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'
|
render 'loading'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user