git ssb

2+

cel / scuttlebot.io



Commit b8d984a9824e6f3e97628f0a17865124f4d8c3ca

Merge branch 'friends-stream'

cel committed on 4/20/2019, 10:40:51 PM
Parent: 758e433b7c3d4c10d3f23bafb07b64262514e96f
Parent: a7f65c9b101bb60cc008a9b5343f1c836e90e617

Files changed

tmpl/docs/social/query-the-social-graph.mdchanged
tmpl/docs/social/query-the-social-graph.mdView
@@ -1,16 +1,16 @@
11 ## Fetch the social graph
22
3-You can see who follows whom by calling the `friends.all` method.
3 +You can see who follows whom by calling the `friends.stream` method.
44 It will provide an object of `{ userId => [followedIds] }`.
55
66 ```js
7-sbot.friends.all(function (err, graph) {
7 +sbot.friends.stream(function (err, graph) {
88 // ...
99 })
1010 ```
1111 ```bash
12-sbot friends.all
12 +sbot friends.stream
1313 ```
1414
1515 Example output:
1616
@@ -67,5 +67,5 @@
6767 "@v4pOKqdvSpv/Rm/Eb+g5gCfsBXVVzKbmMT/F6IW7lds=.ed25519": 2,
6868 "@+gpZcBi1p1E2omC9L3bXUWduYWfrUZqwWcednMxy+Rw=.ed25519": 3,
6969 "@OweKXqiKl49z9pzp764z0xvzOfHqTacYxuLubLzrCgQ=.ed25519": 3
7070 }
71-```
71 +```

Built with git-ssb-web