diff --git a/app/controllers/panel/feed/back_end/feed_requests_controller.rb b/app/controllers/panel/feed/back_end/feed_requests_controller.rb index 2bd3366..35e8bf2 100644 --- a/app/controllers/panel/feed/back_end/feed_requests_controller.rb +++ b/app/controllers/panel/feed/back_end/feed_requests_controller.rb @@ -5,14 +5,15 @@ class Panel::Feed::BackEnd::FeedRequestsController < OrbitBackendController open_for_visitor :only => [:transferred_request, :accepted_request] def transferred_request + binding.pry if request.headers["HTTP_X_AUTH_TOKEN"] == '3kjlfksjDFJ' permission_feed = AnnouncementFeed.new( link: params['link'], name: params['name'], categories: params['categories'].split, from_request: true, - from_request_link: request.host) - + from_request_link: params['from_host']) + permission_feed.save! render :nothing => true diff --git a/app/controllers/panel/feed/back_end/feeds_controller.rb b/app/controllers/panel/feed/back_end/feeds_controller.rb index f78fdea..bf48fed 100644 --- a/app/controllers/panel/feed/back_end/feeds_controller.rb +++ b/app/controllers/panel/feed/back_end/feeds_controller.rb @@ -122,6 +122,7 @@ class Panel::Feed::BackEnd::FeedsController < OrbitBackendController body = { 'link' => feed.link, 'name' => feed.name, + 'from_host' => request.host, 'categories' => categories }