mirror of
https://github.com/miniflux/v2.git
synced 2025-09-15 18:57:04 +00:00
test(reader): ensure consistent tags parsing across feed formats
This commit is contained in:
parent
d6d18a2d61
commit
2e26f5ca75
7 changed files with 98 additions and 70 deletions
|
@ -137,6 +137,8 @@ func (a *Atom10Adapter) populateEntries(siteURL string) model.Entries {
|
|||
if len(categories) == 0 {
|
||||
categories = a.atomFeed.Categories.CategoryNames()
|
||||
}
|
||||
|
||||
// Sort and deduplicate categories.
|
||||
sort.Strings(categories)
|
||||
entry.Tags = slices.Compact(categories)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue