A free, self-hostable news aggregator…
API add feed bug with PSHB
Alexandre Alapetite85c8fba94fa0
diff --git a/app/Models/Feed.php b/app/Models/Feed.phpindex 658b9ccca..f2f345662 100644--- a/app/Models/Feed.php+++ b/app/Models/Feed.php@@ -460,7 +460,7 @@ class FreshRSS_Feed extends Minz_Model {CURLOPT_URL => $this->hubUrl,CURLOPT_FOLLOWLOCATION => true,CURLOPT_RETURNTRANSFER => true,- CURLOPT_USERAGENT => _t('gen.freshrss') . '/' . FRESHRSS_VERSION . ' (' . PHP_OS . '; ' . FRESHRSS_WEBSITE . ')',+ CURLOPT_USERAGENT => 'FreshRSS/' . FRESHRSS_VERSION . ' (' . PHP_OS . '; ' . FRESHRSS_WEBSITE . ')',CURLOPT_POSTFIELDS => 'hub.verify=sync'. '&hub.mode=' . ($state ? 'subscribe' : 'unsubscribe'). '&hub.topic=' . urlencode($this->selfUrl)