Serve more messages by default in user-feed as people seem more active :) Still a hack though
This commit is contained in:
@@ -164,13 +164,13 @@ exports.init = function (sbot, config) {
|
|||||||
|
|
||||||
function serveFeeds(req, res, following, channelSubscriptions, feedId, name) {
|
function serveFeeds(req, res, following, channelSubscriptions, feedId, name) {
|
||||||
pull(
|
pull(
|
||||||
sbot.createLogStream({ reverse: true, limit: 2500 }),
|
sbot.createLogStream({ reverse: true, limit: 5000 }),
|
||||||
pull.filter((msg) => {
|
pull.filter((msg) => {
|
||||||
return !msg.value ||
|
return !msg.value ||
|
||||||
(msg.value.author in following ||
|
(msg.value.author in following ||
|
||||||
msg.value.content.channel in channelSubscriptions)
|
msg.value.content.channel in channelSubscriptions)
|
||||||
}),
|
}),
|
||||||
pull.take(100),
|
pull.take(150),
|
||||||
pull.collect(function (err, logs) {
|
pull.collect(function (err, logs) {
|
||||||
if (err) return respond(res, 500, err.stack || err)
|
if (err) return respond(res, 500, err.stack || err)
|
||||||
res.writeHead(200, {
|
res.writeHead(200, {
|
||||||
|
|||||||
Reference in New Issue
Block a user