Jelajahi Sumber

Fix order of `site` doc in feeds view

Markus Ochel 12 tahun lalu
induk
melakukan
97e9bbcef3
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      site/server/views.coffee

+ 1 - 1
site/server/views.coffee

@@ -80,7 +80,7 @@ exports.docs_for_feeds =
     types = ['essay','scene','video','profile']
     if doc.type is 'site'
       # Add the site doc
-      emit [doc._id, null], null
+      emit [doc._id, {}], null
     else if doc.site and doc.type and types.indexOf(doc.type) >= 0 and doc.published_at and doc.published
       timestamp = new Date(doc.published_at).getTime()
       emit [doc.site, timestamp, doc._id, {}], null