IndieAuth login support, allows viewing of topics related to profile
[websub-hub] / src / template / admin-topic-details-html.js
index df13f210f7af70c2686b3955ee3d744f4b2b43db..e03918910d935f98f9c70f6cd1720d5d545b8f59 100644 (file)
@@ -25,14 +25,14 @@ module.exports = (ctx, options) => {
   if (!ctx.subscriptions) {
     ctx.subscriptions = [];
   }
-  return th.htmlTemplate(2, pageTitle, headElements, navLinks, [
+  return th.htmlTemplate(ctx, 2, pageTitle, headElements, navLinks, [
     `      <section class="topics">
         <table>
           <thead>`,
     th.renderTopicRowHeader(),
     `          </thead>
         <tbody>`,
-    ...(ctx.topic && [ th.renderTopicRow(ctx.topic, ctx.subscriptions, false) ]),
+    ...(ctx.topic && [ th.renderTopicRow(ctx.topic, ctx.subscriptions, false) ] || []),
     `        </tbody>
         </table>
       </section>`,