Rename renderItem -> renderRssItem.
This commit is contained in:
@@ -17,7 +17,7 @@ var {
|
|||||||
wrapPage,
|
wrapPage,
|
||||||
renderThread,
|
renderThread,
|
||||||
renderAbout,
|
renderAbout,
|
||||||
renderItem,
|
renderRssItem,
|
||||||
wrapRss,
|
wrapRss,
|
||||||
renderRssContent,
|
renderRssContent,
|
||||||
} = require('./render');
|
} = require('./render');
|
||||||
@@ -110,7 +110,7 @@ exports.init = function (sbot, config) {
|
|||||||
pull.filter( (msg) => {
|
pull.filter( (msg) => {
|
||||||
return !!renderRssContent(defaultOpts, msg.value.content || {});
|
return !!renderRssContent(defaultOpts, msg.value.content || {});
|
||||||
}),
|
}),
|
||||||
renderItem(defaultOpts), wrapRss(about.name, defaultOpts)
|
renderRssItem(defaultOpts), wrapRss(about.name, defaultOpts)
|
||||||
);
|
);
|
||||||
default:
|
default:
|
||||||
return pull(
|
return pull(
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ exports.renderEmoji = renderEmoji;
|
|||||||
exports.formatMsgs = formatMsgs;
|
exports.formatMsgs = formatMsgs;
|
||||||
exports.renderThread = renderThread;
|
exports.renderThread = renderThread;
|
||||||
exports.renderAbout = renderAbout;
|
exports.renderAbout = renderAbout;
|
||||||
exports.renderItem = renderItem;
|
exports.renderRssItem = renderRssItem;
|
||||||
exports.wrapRss = wrapRss;
|
exports.wrapRss = wrapRss;
|
||||||
exports.renderRssContent = renderRssContent;
|
exports.renderRssContent = renderRssContent;
|
||||||
|
|
||||||
@@ -88,7 +88,7 @@ function formatMsgs(id, ext, opts) {
|
|||||||
case "json":
|
case "json":
|
||||||
return wrapJSON();
|
return wrapJSON();
|
||||||
case "rss":
|
case "rss":
|
||||||
return pull(renderItem(opts), wrapRss(id, opts));
|
return pull(renderRssItem(opts), wrapRss(id, opts));
|
||||||
default:
|
default:
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@@ -141,7 +141,7 @@ function renderThread(opts, showAllHTML = "") {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function renderItem(opts) {
|
function renderRssItem(opts) {
|
||||||
return pull(
|
return pull(
|
||||||
pull.map(renderRss.bind(this, opts))
|
pull.map(renderRss.bind(this, opts))
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user