aboutsummaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2024-07-24 19:39:30 +0200
committerGravatar GitHub <noreply@github.com> 2024-07-24 19:39:30 +0200
commit5267db88abf7c8546e8ba47c6d4acfd362a82e1d (patch)
tree46b40d5bae64c5ca2ded8b3c52030c0153b0680b /app/views
parenta6d7bdc7426af55ffde71ab626a096a98f650974 (diff)
Share in GReader JSON format (#6655)
fix https://github.com/FreshRSS/FreshRSS/discussions/6654#discussioncomment-10128309
Diffstat (limited to 'app/views')
-rw-r--r--app/views/helpers/configure/query.phtml1
-rw-r--r--app/views/helpers/export/articles.phtml4
2 files changed, 5 insertions, 0 deletions
diff --git a/app/views/helpers/configure/query.phtml b/app/views/helpers/configure/query.phtml
index d23a5adfb..c32bf1e85 100644
--- a/app/views/helpers/configure/query.phtml
+++ b/app/views/helpers/configure/query.phtml
@@ -42,6 +42,7 @@
<ul>
<li><a href="<?= $this->query->sharedUrlHtml() ?>"><?= _i('link') ?> <?= _t('conf.query.share.html') ?></a></li>
<li><a href="<?= $this->query->sharedUrlRss() ?>"><?= _i('link') ?> <?= _t('conf.query.share.rss') ?></a></li>
+ <li><a href="<?= $this->query->sharedUrlGreader() ?>"><?= _i('link') ?> <?= _t('conf.query.share.greader') ?></a></li>
</ul>
<?php endif; ?>
</div>
diff --git a/app/views/helpers/export/articles.phtml b/app/views/helpers/export/articles.phtml
index 40390d832..f62573dd4 100644
--- a/app/views/helpers/export/articles.phtml
+++ b/app/views/helpers/export/articles.phtml
@@ -20,6 +20,10 @@ if (empty($this->entryIdsTagNames)) {
}
foreach ($this->entries as $entry) {
+ if (!$this->internal_rendering) {
+ /** @var FreshRSS_Entry */
+ $entry = Minz_ExtensionManager::callHook('entry_before_display', $entry);
+ }
if ($entry == null) {
continue;
}