From 7ee11b05080bc29d4f17b7387f5767eb69093030 Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 25 Apr 2016 10:47:38 +1000 Subject: [PATCH] more logging, add referer --- app/controllers/embed_controller.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/controllers/embed_controller.rb b/app/controllers/embed_controller.rb index bc1fbaea86e..77f693046e4 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