From 06d34f9b8ed81854baaaea3a4a7f4e247cab31a0 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Mon, 24 Nov 2025 22:01:46 +0100 Subject: OPML export/import of unicity criteria (#8243) Found during https://github.com/FreshRSS/FreshRSS/discussions/8242#discussioncomment-15052838 --- app/views/helpers/export/opml.phtml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'app/views') diff --git a/app/views/helpers/export/opml.phtml b/app/views/helpers/export/opml.phtml index de044332e..feeb409a5 100644 --- a/app/views/helpers/export/opml.phtml +++ b/app/views/helpers/export/opml.phtml @@ -47,6 +47,14 @@ function feedsToOutlines(array $feeds, bool $excludeMutedFeeds = false): array { default => null, }; + if ($feed->attributeString('unicityCriteria') != '' && $feed->attributeString('unicityCriteria') !== 'id') { + $outline['frss:unicityCriteria'] = $feed->attributeString('unicityCriteria'); + } + + if ($feed->attributeBoolean('unicityCriteriaForced')) { + $outline['frss:unicityCriteriaForced'] = 'true'; + } + if ($feed->kind() === FreshRSS_Feed::KIND_HTML_XPATH || $feed->kind() === FreshRSS_Feed::KIND_XML_XPATH) { /** @var array */ $xPathSettings = $feed->attributeArray('xpath') ?? []; -- cgit v1.2.3