We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f34493c + c0f951b commit 8fad2f5Copy full SHA for 8fad2f5
lib/feed.js
@@ -235,18 +235,9 @@ function atom_1_0(options) {
235
// entry author(s)
236
if(entries[i].author) {
237
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 });
+ if(entries[i].author[y].email) {
+ entry.push({ author: entries[i].author[y].email });
+ }
250
}
251
252
0 commit comments