diff options
| author | 2024-07-24 19:39:30 +0200 | |
|---|---|---|
| committer | 2024-07-24 19:39:30 +0200 | |
| commit | 5267db88abf7c8546e8ba47c6d4acfd362a82e1d (patch) | |
| tree | 46b40d5bae64c5ca2ded8b3c52030c0153b0680b /app/Models/UserQuery.php | |
| parent | a6d7bdc7426af55ffde71ab626a096a98f650974 (diff) | |
Share in GReader JSON format (#6655)
fix https://github.com/FreshRSS/FreshRSS/discussions/6654#discussioncomment-10128309
Diffstat (limited to 'app/Models/UserQuery.php')
| -rw-r--r-- | app/Models/UserQuery.php | 7 |
1 files changed, 7 insertions, 0 deletions
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'; |
