git ssb

2+

cel / scuttlebot.io



Commit a7f65c9b101bb60cc008a9b5343f1c836e90e617

Rename `friends.all` to `friends.stream` in docs

`friends.all` doesn't seem to exist anywhere, but `friends.stream` provides the described functionality.
Matt Ross authored on 10/9/2017, 5:54:02 PM
GitHub committed on 10/9/2017, 5:54:02 PM
Parent: 3fac22a4a27f3a65427e7f145c9f55db93a0b795

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