Commit f5e2111be8db7544d34c2400b3b8b02a24ed91e8
Serve more messages by default in user-feed as people seem more active :) Still a hack though
Anders Rune Jensen committed on 5/31/2017, 7:07:52 PMParent: 8c420a8d3bd2ae01b8ecb8409e951c5fde1e0f8d
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -163,15 +163,15 @@ | ||
163 | 163 … | } |
164 | 164 … | |
165 | 165 … | function serveFeeds(req, res, following, channelSubscriptions, feedId, name) { |
166 | 166 … | pull( |
167 | - sbot.createLogStream({ reverse: true, limit: 2500 }), | |
167 … | + sbot.createLogStream({ reverse: true, limit: 5000 }), | |
168 | 168 … | pull.filter((msg) => { |
169 | 169 … | return !msg.value || |
170 | 170 … | (msg.value.author in following || |
171 | 171 … | msg.value.content.channel in channelSubscriptions) |
172 | 172 … | }), |
173 | - pull.take(100), | |
173 … | + pull.take(150), | |
174 | 174 … | pull.collect(function (err, logs) { |
175 | 175 … | if (err) return respond(res, 500, err.stack || err) |
176 | 176 … | res.writeHead(200, { |
177 | 177 … | 'Content-Type': ctype("html") |
Built with git-ssb-web