mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2025-01-06 01:20:28 +05:30
Merge pull request #380 from TheSilkky/master
Allow PubSub Hub url to be configured
This commit is contained in:
commit
2433586050
@ -36,6 +36,8 @@ public class Constants {
|
|||||||
public static final String PUBLIC_URL;
|
public static final String PUBLIC_URL;
|
||||||
|
|
||||||
public static final String PUBSUB_URL;
|
public static final String PUBSUB_URL;
|
||||||
|
|
||||||
|
public static final String PUBSUB_HUB_URL;
|
||||||
|
|
||||||
public static final String HTTP_PROXY;
|
public static final String HTTP_PROXY;
|
||||||
|
|
||||||
@ -85,6 +87,7 @@ public class Constants {
|
|||||||
CAPTCHA_API_KEY = getProperty(prop, "CAPTCHA_API_KEY");
|
CAPTCHA_API_KEY = getProperty(prop, "CAPTCHA_API_KEY");
|
||||||
PUBLIC_URL = getProperty(prop, "API_URL");
|
PUBLIC_URL = getProperty(prop, "API_URL");
|
||||||
PUBSUB_URL = getProperty(prop, "PUBSUB_URL", PUBLIC_URL);
|
PUBSUB_URL = getProperty(prop, "PUBSUB_URL", PUBLIC_URL);
|
||||||
|
PUBSUB_HUB_URL = getProperty(prop, "PUBSUB_HUB_URL", "https://pubsubhubbub.appspot.com/subscribe");
|
||||||
HTTP_PROXY = getProperty(prop, "HTTP_PROXY");
|
HTTP_PROXY = getProperty(prop, "HTTP_PROXY");
|
||||||
FRONTEND_URL = getProperty(prop, "FRONTEND_URL", "https://piped.kavin.rocks");
|
FRONTEND_URL = getProperty(prop, "FRONTEND_URL", "https://piped.kavin.rocks");
|
||||||
COMPROMISED_PASSWORD_CHECK = Boolean.parseBoolean(getProperty(prop, "COMPROMISED_PASSWORD_CHECK", "true"));
|
COMPROMISED_PASSWORD_CHECK = Boolean.parseBoolean(getProperty(prop, "COMPROMISED_PASSWORD_CHECK", "true"));
|
||||||
|
@ -1705,7 +1705,7 @@ public class ResponseHelper {
|
|||||||
String topic = "https://www.youtube.com/xml/feeds/videos.xml?channel_id=" + channelId;
|
String topic = "https://www.youtube.com/xml/feeds/videos.xml?channel_id=" + channelId;
|
||||||
|
|
||||||
var builder = new Request.Builder()
|
var builder = new Request.Builder()
|
||||||
.url("https://pubsubhubbub.appspot.com/subscribe");
|
.url(Constants.PUBSUB_HUB_URL);
|
||||||
|
|
||||||
var formBuilder = new FormBody.Builder();
|
var formBuilder = new FormBody.Builder();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user