Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add authors to rss feed

  • Loading branch information...
commit 946dd817535aef6e79c2347a8fc577a9a026c7cc 1 parent 0cb401f
isaacs isaacs authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 registry/app.js
4 registry/app.js
View
@@ -216,6 +216,9 @@ ddoc.lists.rss = function (head, req) {
var date = doc.time && doc.time.modified || doc.ctime
if (!date) continue
date = new Date(date)
+ var authors = doc.maintainers.map(function (m) {
+ return '<author>' + m.name + '</author>'
+ }).join('\n ')
doc = doc.versions[doc["dist-tags"].latest]
if (!doc) continue
@@ -235,6 +238,7 @@ ddoc.lists.rss = function (head, req) {
send('\n <item>'
+'\n <title>' + doc._id + '</title>'
+'\n <link>' + url + '</link>'
+ +'\n ' + authors
+'\n <description><![CDATA['
+ (doc.description || '').trim() + ']]></description>'
+'\n <pubDate>' + date.toISOString() + '</pubDate>'
Please sign in to comment.
Something went wrong with that request. Please try again.