Commit b8d984a9824e6f3e97628f0a17865124f4d8c3ca
Merge branch 'friends-stream'
cel committed on 4/20/2019, 10:40:51 PMParent: 758e433b7c3d4c10d3f23bafb07b64262514e96f
Parent: a7f65c9b101bb60cc008a9b5343f1c836e90e617
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