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.md | changed |
tmpl/docs/social/query-the-social-graph.md | ||
---|---|---|
@@ -1,16 +1,16 @@ | ||
1 | 1 … | ## Fetch the social graph |
2 | 2 … | |
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. | |
4 | 4 … | It will provide an object of `{ userId => [followedIds] }`. |
5 | 5 … | |
6 | 6 … | ```js |
7 | -sbot.friends.all(function (err, graph) { | |
7 … | +sbot.friends.stream(function (err, graph) { | |
8 | 8 … | // ... |
9 | 9 … | }) |
10 | 10 … | ``` |
11 | 11 … | ```bash |
12 | -sbot friends.all | |
12 … | +sbot friends.stream | |
13 | 13 … | ``` |
14 | 14 … | |
15 | 15 … | Example output: |
16 | 16 … | |
@@ -67,5 +67,5 @@ | ||
67 | 67 … | "@v4pOKqdvSpv/Rm/Eb+g5gCfsBXVVzKbmMT/F6IW7lds=.ed25519": 2, |
68 | 68 … | "@+gpZcBi1p1E2omC9L3bXUWduYWfrUZqwWcednMxy+Rw=.ed25519": 3, |
69 | 69 … | "@OweKXqiKl49z9pzp764z0xvzOfHqTacYxuLubLzrCgQ=.ed25519": 3 |
70 | 70 … | } |
71 | -``` | |
71 … | +``` |
Built with git-ssb-web