git ssb

0+

Josiah / ssb-tags



Commit c9ac2432a47d380b558b47e73e078327338b2bca

Keep index of all tags in your network

Josiah Witt committed on 3/15/2018, 12:55:40 AM
Parent: 61c7de212f2f9e5ff13ceea09919dcb6d3774c27

Files changed

index.jschanged
index.jsView
@@ -12,9 +12,9 @@
1212
1313 var initialState = {}
1414
1515 exports.init = function(ssb, config) {
16- return ssb._flumeUse('tags', FlumeReduce('test', reduce, map, null, initialState))
16 + return ssb._flumeUse('tags', FlumeReduce(1, reduce, map, null, initialState))
1717
1818 function reduce(result, item) {
1919 if (!item) return result
2020
@@ -46,11 +46,8 @@
4646 return result
4747 }
4848
4949 function map(msg) {
50- // only include your own tags (for now)
51- if (msg.value.author !== ssb.id) return
52-
5350 // unbox private message
5451 if (msg.value.content === 'string') {
5552 // unbox private message (requires ssb-private plugin)
5653 msg = ssb.private.unbox(msg)

Built with git-ssb-web