fix from-request-link
This commit is contained in:
parent
fa47232ecf
commit
b44d527b0a
|
@ -5,13 +5,14 @@ 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!
|
||||
|
||||
|
|
|
@ -122,6 +122,7 @@ class Panel::Feed::BackEnd::FeedsController < OrbitBackendController
|
|||
body = {
|
||||
'link' => feed.link,
|
||||
'name' => feed.name,
|
||||
'from_host' => request.host,
|
||||
'categories' => categories
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue