git ssb

16+

Dominic / patchbay



Commit 281d3c913778ec70033757c2f369e25b8b9a6d1a

fix /public to only show public messages!

mix irving committed on 7/14/2018, 1:08:48 AM
Parent: 7c6b563bcb3bbba64f3cebbf33a2e46ca364af95

Files changed

app/page/public.jschanged
app/page/public.jsView
@@ -43,11 +43,20 @@
4343 const { container, content } = api.app.html.scroller({ prepend: [composer, filterMenu] })
4444
4545 const createStream = (opts) => api.sbot.pull.stream(server => {
4646 const _opts = merge({}, opts, {
47- query: [{$filter: { timestamp: {$gt: 0} }}]
47 + query: [{
48 + $filter: {
49 + timestamp: {$gt: 0, $lt: undefined},
50 + value: {
51 + content: { recps: {$not: true} }
52 + }
53 + }
54 + }],
55 + limit: 100
4856 })
4957
58 + server.query.explain(_opts, console.log)
5059 return next(server.query.read, _opts, ['timestamp'])
5160 })
5261
5362 // TODO : build a pull-stream which has seperate state + rendering
@@ -60,15 +69,15 @@
6069 }
6170
6271 // TODO - change to use ssb-query, streamed by publish time
6372 pull(
64- createStream({old: false, limit: 100, live: true}),
73 + createStream({old: false, live: true}),
6574 filterUpThrough(),
6675 Scroller(container, content, render, true, false)
6776 )
6877
6978 pull(
70- createStream({reverse: true, limit: 100, live: false}),
79 + createStream({reverse: true, live: false}),
7180 filterDownThrough(),
7281 Scroller(container, content, render, false, false)
7382 )
7483 }

Built with git-ssb-web