Commit 281d3c913778ec70033757c2f369e25b8b9a6d1a
fix /public to only show public messages!
mix irving committed on 7/14/2018, 1:08:48 AMParent: 7c6b563bcb3bbba64f3cebbf33a2e46ca364af95
Files changed
app/page/public.js | changed |
app/page/public.js | ||
---|---|---|
@@ -43,11 +43,20 @@ | ||
43 | 43 … | const { container, content } = api.app.html.scroller({ prepend: [composer, filterMenu] }) |
44 | 44 … | |
45 | 45 … | const createStream = (opts) => api.sbot.pull.stream(server => { |
46 | 46 … | 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 | |
48 | 56 … | }) |
49 | 57 … | |
58 … | + server.query.explain(_opts, console.log) | |
50 | 59 … | return next(server.query.read, _opts, ['timestamp']) |
51 | 60 … | }) |
52 | 61 … | |
53 | 62 … | // TODO : build a pull-stream which has seperate state + rendering |
@@ -60,15 +69,15 @@ | ||
60 | 69 … | } |
61 | 70 … | |
62 | 71 … | // TODO - change to use ssb-query, streamed by publish time |
63 | 72 … | pull( |
64 | - createStream({old: false, limit: 100, live: true}), | |
73 … | + createStream({old: false, live: true}), | |
65 | 74 … | filterUpThrough(), |
66 | 75 … | Scroller(container, content, render, true, false) |
67 | 76 … | ) |
68 | 77 … | |
69 | 78 … | pull( |
70 | - createStream({reverse: true, limit: 100, live: false}), | |
79 … | + createStream({reverse: true, live: false}), | |
71 | 80 … | filterDownThrough(), |
72 | 81 … | Scroller(container, content, render, false, false) |
73 | 82 … | ) |
74 | 83 … | } |
Built with git-ssb-web