aboutsummaryrefslogtreecommitdiff
path: root/app/views/helpers/export/opml.phtml
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2024-12-10 14:57:25 +0100
committerGravatar GitHub <noreply@github.com> 2024-12-10 14:57:25 +0100
commitab9a4e292cab48c94e6bac818f3256f6e131c041 (patch)
tree51e3341929570aabc61b663d24bcd44b6ba821c2 /app/views/helpers/export/opml.phtml
parent052261bb8efbb910cefbf82fa54c64f54ba79854 (diff)
OPML export/import for cssFullContentConditions (#7082)
Follow-up of https://github.com/FreshRSS/FreshRSS/commit/33fd07f6f26310d4806077cc87bcdf9b8b940e35, which should have been a PR.
Diffstat (limited to 'app/views/helpers/export/opml.phtml')
-rw-r--r--app/views/helpers/export/opml.phtml13
1 files changed, 12 insertions, 1 deletions
diff --git a/app/views/helpers/export/opml.phtml b/app/views/helpers/export/opml.phtml
index eecfc5d23..c37d8c7c4 100644
--- a/app/views/helpers/export/opml.phtml
+++ b/app/views/helpers/export/opml.phtml
@@ -82,8 +82,19 @@ function feedsToOutlines(array $feeds, bool $excludeMutedFeeds = false): array {
$outline['frss:cssFullContent'] = htmlspecialchars_decode($feed->pathEntries(), ENT_QUOTES);
}
+ if (!empty($feed->attributeArray('path_entries_conditions'))) {
+ $conditions = '';
+ foreach ($feed->attributeArray('path_entries_conditions') as $condition) {
+ if (is_string($condition)) {
+ $conditions .= $condition . "\n";
+ }
+ }
+ $conditions = trim($conditions);
+ $outline['frss:cssFullContentConditions'] = $conditions;
+ }
+
if ($feed->attributeString('path_entries_filter') != '') {
- $outline['frss:cssFullContentFilter'] = $feed->attributeString('path_entries_filter');
+ $outline['frss:cssContentFilter'] = $feed->attributeString('path_entries_filter');
}
$curl_params = $feed->attributeArray('curl_params');