Skip to content

Commit 8fad2f5

Browse files
authored
Merge pull request #48 from jpmonette/issue-41
Resolves #41 - Fix “author” tag based on W3 Validator
2 parents f34493c + c0f951b commit 8fad2f5

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

lib/feed.js

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -235,18 +235,9 @@ function atom_1_0(options) {
235235
// entry author(s)
236236
if(entries[i].author) {
237237
for(var y = 0; y < entries[i].author.length; y++) {
238-
var entryAuthor = [];
239-
240-
if(entries[i].author[y].name)
241-
entryAuthor.push({ name: entries[i].author[y].name });
242-
243-
if(entries[i].author[y].email)
244-
entryAuthor.push({ email: entries[i].author[y].email });
245-
246-
if(entries[i].author[y].link)
247-
entryAuthor.push({ uri: entries[i].author[y].link });
248-
249-
entry.push({ author: entryAuthor });
238+
if(entries[i].author[y].email) {
239+
entry.push({ author: entries[i].author[y].email });
240+
}
250241
}
251242
}
252243

0 commit comments

Comments
 (0)