index.jsView |
---|
174 | 174 … | delete channelSubscriptions[msg.value.content.channel] |
175 | 175 … | } |
176 | 176 … | }) |
177 | 177 … | |
178 | | - serveFeeds(req, res, following, channelSubscriptions, feedId, 'user feed ' + (about ? about.name : "")) |
| 178 … | + serveFeeds(req, res, following, channelSubscriptions, feedId, |
| 179 … | + 'user feed ' + (about ? about.name : "")) |
179 | 180 … | }) |
180 | 181 … | ) |
181 | 182 … | }) |
182 | 183 … | } |
183 | 184 … | |
184 | 185 … | function serveFeeds(req, res, following, channelSubscriptions, feedId, name) { |
| 186 … | + var feedOpts = Object.assign({}, defaultOpts, { |
| 187 … | + renderPrivate: false, |
| 188 … | + renderSubscribe: false |
| 189 … | + }) |
| 190 … | + |
|
185 | 191 … | pull( |
186 | 192 … | sbot.createLogStream({ reverse: true, limit: 5000 }), |
187 | 193 … | pull.filter((msg) => { |
188 | 194 … | return !msg.value || |
200 | 206 … | paramap(addAuthorAbout, 8), |
201 | 207 … | paramap(addFollowAbout, 8), |
202 | 208 … | paramap(addVoteMessage, 8), |
203 | 209 … | paramap(addGitLinks, 8), |
204 | | - pull(renderThread(Object.assign({}, defaultOpts, { renderPrivate: false })), wrapPage(name)), |
| 210 … | + pull(renderThread(feedOpts), wrapPage(name)), |
205 | 211 … | toPull(res, function (err) { |
206 | 212 … | if (err) console.error('[viewer]', err) |
207 | 213 … | }) |
208 | 214 … | ) |