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:
parent
41d47244af
commit
f18ded6117
3 changed files with 138 additions and 11 deletions
|
@ -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"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue