Skip to content

Commit

Permalink
Resolves #41 - Fix “author” tag based on W3 Validator
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmonette committed Mar 31, 2017
1 parent f34493c commit c0f951b
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions lib/feed.js
Expand Up @@ -235,18 +235,9 @@ function atom_1_0(options) {
// entry author(s)
if(entries[i].author) {
for(var y = 0; y < entries[i].author.length; y++) {
var entryAuthor = [];

if(entries[i].author[y].name)
entryAuthor.push({ name: entries[i].author[y].name });

if(entries[i].author[y].email)
entryAuthor.push({ email: entries[i].author[y].email });

if(entries[i].author[y].link)
entryAuthor.push({ uri: entries[i].author[y].link });

entry.push({ author: entryAuthor });
if(entries[i].author[y].email) {
entry.push({ author: entries[i].author[y].email });
}
}
}

Expand Down

0 comments on commit c0f951b

Please sign in to comment.