Add comments to author checks
This commit is contained in:
3
feed.go
3
feed.go
@@ -142,6 +142,9 @@ func (f *Feed) Check() error {
|
||||
}
|
||||
}
|
||||
|
||||
// atom:feed elements MUST contain one or more atom:author elements, unless
|
||||
// all of the atom:feed element's child atom:entry elements contain at
|
||||
// least one atom:author element.
|
||||
if f.Authors == nil {
|
||||
for _, e := range f.Entries {
|
||||
if err := e.checkAuthors(); err != nil {
|
||||
|
Reference in New Issue
Block a user