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 b567544b3..1ab2b8d69 100644 --- a/app/Services/ImportService.php +++ b/app/Services/ImportService.php @@ -177,6 +177,15 @@ class FreshRSS_Import_Service { break; } + $feed->_priority(match (strtolower($feed_elt['frss:priority'] ?? '')) { + FreshRSS_Export_Service::PRIORITY_IMPORTANT => FreshRSS_Feed::PRIORITY_IMPORTANT, + FreshRSS_Export_Service::PRIORITY_MAIN_STREAM => FreshRSS_Feed::PRIORITY_MAIN_STREAM, + FreshRSS_Export_Service::PRIORITY_CATEGORY => FreshRSS_Feed::PRIORITY_CATEGORY, + FreshRSS_Export_Service::PRIORITY_FEED => FreshRSS_Feed::PRIORITY_FEED, + FreshRSS_Export_Service::PRIORITY_HIDDEN => FreshRSS_Feed::PRIORITY_HIDDEN, + default => FreshRSS_Feed::PRIORITY_MAIN_STREAM, + }); + if (isset($feed_elt['frss:cssFullContent'])) { $feed->_pathEntries(Minz_Helper::htmlspecialchars_utf8($feed_elt['frss:cssFullContent'])); } |
