From 5c5f06a92c9162f2b48ad4d455f7ae8d0fc5d36b Mon Sep 17 00:00:00 2001 From: Mitchell Cash Date: Tue, 13 Jun 2017 16:42:07 +1000 Subject: [PATCH] Fixed: Twitter oAuth callback URL (#1669) --- src/UI/Settings/Notifications/Edit/NotificationEditView.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/UI/Settings/Notifications/Edit/NotificationEditView.js b/src/UI/Settings/Notifications/Edit/NotificationEditView.js index 5e626ce90..3089b117b 100644 --- a/src/UI/Settings/Notifications/Edit/NotificationEditView.js +++ b/src/UI/Settings/Notifications/Edit/NotificationEditView.js @@ -91,8 +91,9 @@ var view = Marionette.ItemView.extend({ this.ui.indicator.show(); var self = this; + var callbackUrl = window.location.origin + window.NzbDrone.UrlBase + '/oauth.html'; - var promise = this.model.requestAction('startOAuth', { callbackUrl: window.location.origin + '/oauth.html' }) + var promise = this.model.requestAction('startOAuth', { callbackUrl: callbackUrl }) .then(function(response) { return self._showOAuthWindow(response.oauthUrl); }) @@ -137,4 +138,4 @@ AsModelBoundView.call(view); AsValidatedView.call(view); AsEditModalView.call(view); -module.exports = view; \ No newline at end of file +module.exports = view;