From 5267db88abf7c8546e8ba47c6d4acfd362a82e1d Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Wed, 24 Jul 2024 19:39:30 +0200 Subject: Share in GReader JSON format (#6655) fix https://github.com/FreshRSS/FreshRSS/discussions/6654#discussioncomment-10128309 --- app/Models/UserQuery.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'app/Models/UserQuery.php') diff --git a/app/Models/UserQuery.php b/app/Models/UserQuery.php index 3058483d3..dcd17393e 100644 --- a/app/Models/UserQuery.php +++ b/app/Models/UserQuery.php @@ -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'; -- cgit v1.2.3