1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-16 18:01:37 +00:00

Add support for multiple authors in Atom feeds

This commit is contained in:
Frédéric Guillot 2022-01-14 20:12:22 -08:00
parent 41d47244af
commit f18ded6117
3 changed files with 138 additions and 11 deletions

View file

@ -24,6 +24,18 @@ func (a *atomPerson) String() string {
return strings.TrimSpace(name)
}
type atomAuthors []*atomPerson
func (a atomAuthors) String() string {
var authors []string
for _, person := range a {
authors = append(authors, person.String())
}
return strings.Join(authors, ", ")
}
type atomLink struct {
URL string `xml:"href,attr"`
Type string `xml:"type,attr"`