Act as if there is an author in the feed when only checking the entry

This commit is contained in:
2024-10-17 05:05:14 +02:00
parent 2ef8d8c9df
commit 6b9d5be734
2 changed files with 10 additions and 8 deletions

View File

@@ -128,7 +128,7 @@ func (f *Feed) Check() error {
// least one atom:author element.
if f.Authors == nil {
for _, e := range f.Entries {
if err := e.checkAuthors(); err != nil {
if err := e.checkAuthors(false); err != nil {
return fmt.Errorf("no authors set in feed %v: %v", f.ID.URI, err)
}
}