diff options
Diffstat (limited to 'app/Services/ImportService.php')
| -rw-r--r-- | app/Services/ImportService.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/Services/ImportService.php b/app/Services/ImportService.php index 26d07faae..22865f873 100644 --- a/app/Services/ImportService.php +++ b/app/Services/ImportService.php @@ -186,6 +186,15 @@ class FreshRSS_Import_Service { default => FreshRSS_Feed::PRIORITY_MAIN_STREAM, }); + if (isset($feed_elt['frss:unicityCriteria']) && $feed_elt['frss:unicityCriteria'] !== 'id' + && preg_match('/^[a-z:_-]{2,64}$/', $feed_elt['frss:unicityCriteria'])) { + $feed->_attribute('unicityCriteria', $feed_elt['frss:unicityCriteria']); + } + + if (filter_var($feed_elt['frss:unicityCriteriaForced'] ?? '', FILTER_VALIDATE_BOOLEAN)) { + $feed->_attribute('unicityCriteriaForced', true); + } + if (isset($feed_elt['frss:cssFullContent'])) { $feed->_pathEntries(Minz_Helper::htmlspecialchars_utf8($feed_elt['frss:cssFullContent'])); } |
