diff --git a/lib/convertv2.js b/lib/convertv2.js index d6d6490..35f0699 100644 --- a/lib/convertv2.js +++ b/lib/convertv2.js @@ -204,6 +204,7 @@ async function itemsForFeed(opts,user,feed) { function getNextPage(opts,user,feed){ //based on feed.next + if (!feed.next){return null} // take feed.next, uriencode it, then take user url, then take options.mastofeedUrl var base = opts.mastofeedUrl.slice(0,opts.mastofeedUrl.indexOf('?')); diff --git a/lib/template.ejs b/lib/template.ejs index 31f3b21..56884fe 100644 --- a/lib/template.ejs +++ b/lib/template.ejs @@ -92,15 +92,12 @@ <%= item.stringDate %> <% }); %> - <% if (nextPageLink) %> - - <% %> - + <% if (nextPageLink){ %> + + <% } %> <% if ( isIndex ){ %>