Share in GReader JSON format (#6655)

fix https://github.com/FreshRSS/FreshRSS/discussions/6654#discussioncomment-10128309
This commit is contained in:
Alexandre Alapetite
2024-07-24 19:39:30 +02:00
committed by GitHub
parent a6d7bdc742
commit 5267db88ab
28 changed files with 46 additions and 1 deletions

View File

@@ -278,6 +278,13 @@ class FreshRSS_UserQuery {
return '';
}
public function sharedUrlGreader(bool $xmlEscaped = true): string {
if ($this->shareRss && $this->token !== '') {
return $this->sharedUrl($xmlEscaped) . ($xmlEscaped ? '&' : '&') . 'f=greader';
}
return '';
}
public function sharedUrlHtml(bool $xmlEscaped = true): string {
if ($this->shareRss && $this->token !== '') {
return $this->sharedUrl($xmlEscaped) . ($xmlEscaped ? '&' : '&') . 'f=html';