Limit channel & feed serving by default

This commit is contained in:
Anders Rune Jensen
2017-05-20 21:37:25 +02:00
parent 54c06b5115
commit 8c420a8d3b
2 changed files with 15 additions and 9 deletions
+4 -4
View File
@@ -95,7 +95,7 @@ function wrap(before, after) {
};
}
function renderAbout(opts, about) {
function renderAbout(opts, about, showAllHTML = "") {
return pull(
pull.map(renderMsg.bind(this, opts)),
wrap(
@@ -111,7 +111,7 @@ function renderAbout(opts, about) {
marked(about.description, opts.marked) : '') +
'</figcaption></figure></header></article>',
'</main>' +
showAllHTML + '</main>' +
'<a class="call-to-action" href="https://www.scuttlebutt.nz">' +
'Join Scuttlebutt now' +
'</a>'
@@ -119,7 +119,7 @@ function renderAbout(opts, about) {
);
}
function renderThread(opts) {
function renderThread(opts, showAllHTML = "") {
return pull(
pull.map(renderMsg.bind(this, opts)),
wrap(
@@ -128,7 +128,7 @@ function renderThread(opts) {
'</span>' +
'<main>',
'</main>' +
showAllHTML + '</main>' +
'<a class="call-to-action" href="https://www.scuttlebutt.nz">' +
'Join Scuttlebutt now' +
'</a>'