more logging, add referer

This commit is contained in:
Sam 2016-04-25 10:47:38 +10:00
parent bb10697c50
commit 7ee11b0508

View file

@ -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