Skip to content

Commit 76f1580

Browse files
committed
Improving catehgories and tags detection
1 parent e477c29 commit 76f1580

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Rss2Outbox/Program.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,9 @@ static void GenerateOutbox(ILogger logger, string input, OutboxConfig config, st
125125
Content = item.Element("{http://purl.org/rss/1.0/modules/content/}encoded")?.Value ?? item.Element("description")?.Value,
126126
PubDate = item.Element("pubDate")?.Value,
127127
Author = item.Element(dc + "creator")?.Value,
128-
Tags = item.Elements("category").Select(c => c.Value).ToList()
128+
Tags = item.Elements("category").Select(c => c.Value)
129+
.Concat(item.Descendants("tags").Elements("tag").Select(t => t.Value))
130+
.ToList()
129131
});
130132

131133
// Get summary from the rss

0 commit comments

Comments
 (0)