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