Skip to content

A free, self-hostable news aggregator…

PSHB base_url bug

Alexandre Alapetite1a0f11ee3862
diff --git a/app/Models/Feed.php b/app/Models/Feed.php
index 986cc5015..9855ca742 100644
--- a/app/Models/Feed.php
+++ b/app/Models/Feed.php
@@ -446,7 +446,7 @@ class FreshRSS_Feed extends Minz_Model {
Minz_Log::warning('Invalid JSON for PubSubHubbub: ' . $this->url);
return false;
}
- $callbackUrl = checkUrl(FreshRSS_Context::$system_conf->base_url . 'api/pshb.php?k=' . $hubJson['key']);
+ $callbackUrl = checkUrl(Minz_Request::getBaseUrl() . '/api/pshb.php?k=' . $hubJson['key']);
if ($callbackUrl == '') {
Minz_Log::warning('Invalid callback for PubSubHubbub: ' . $this->url);
return false;