git ssb

9+

cel / ssb-viewer



Commit cf66c7398b3ea4b26de20ddc0cb1e983384b150a

Rename renderItem -> renderRssItem.

Angelo DiNardi committed on 6/6/2017, 5:54:16 AM
Parent: b21b4ce09db70de58fef3c10705ba430079c9b26

Files changed

index.jschanged
render.jschanged
index.jsView
@@ -16,9 +16,9 @@
1616 formatMsgs,
1717 wrapPage,
1818 renderThread,
1919 renderAbout,
20- renderItem,
20 + renderRssItem,
2121 wrapRss,
2222 renderRssContent,
2323 } = require('./render');
2424
@@ -109,9 +109,9 @@
109109 // formatMsgs(feedId, ext, defaultOpts)
110110 pull.filter( (msg) => {
111111 return !!renderRssContent(defaultOpts, msg.value.content || {});
112112 }),
113- renderItem(defaultOpts), wrapRss(about.name, defaultOpts)
113 + renderRssItem(defaultOpts), wrapRss(about.name, defaultOpts)
114114 );
115115 default:
116116 return pull(
117117 renderAbout(defaultOpts, about, showAllHTML), wrapPage(about.name)
render.jsView
@@ -12,9 +12,9 @@
1212 exports.renderEmoji = renderEmoji;
1313 exports.formatMsgs = formatMsgs;
1414 exports.renderThread = renderThread;
1515 exports.renderAbout = renderAbout;
16-exports.renderItem = renderItem;
16 +exports.renderRssItem = renderRssItem;
1717 exports.wrapRss = wrapRss;
1818 exports.renderRssContent = renderRssContent;
1919
2020 function MdRenderer(opts) {
@@ -87,9 +87,9 @@
8787 return pull(renderThread(opts), wrapJSEmbed(opts));
8888 case "json":
8989 return wrapJSON();
9090 case "rss":
91- return pull(renderItem(opts), wrapRss(id, opts));
91 + return pull(renderRssItem(opts), wrapRss(id, opts));
9292 default:
9393 return null;
9494 }
9595 }
@@ -140,9 +140,9 @@
140140 )
141141 );
142142 }
143143
144-function renderItem(opts) {
144 +function renderRssItem(opts) {
145145 return pull(
146146 pull.map(renderRss.bind(this, opts))
147147 );
148148 }

Built with git-ssb-web