diff --git a/examples/06_search_your_follows.md b/examples/06_search_your_follows.md index abc1715..0cb5d00 100644 --- a/examples/06_search_your_follows.md +++ b/examples/06_search_your_follows.md @@ -1,9 +1,6 @@ # search the accounts you follow -full-text search over posts, scoped to the accounts one user follows, grouped -by author. the account's PDS is resolved from its handle, the same way -[example 02](02_resolve_identity.md) does, so nothing about where the account -lives is configured. +full-text search over posts from the accounts one user follows, grouped by author. ```zig //! search posts from the accounts you follow, grouped by author. @@ -142,17 +139,13 @@ I read and understood like half the @tigerbeetle.com codebase without consulting ... ``` -this is `examples/06_search_your_follows.zig` verbatim. set `ATPROTO_HANDLE`, +`examples/06_search_your_follows.zig` verbatim. set `ATPROTO_HANDLE`, `ATPROTO_PASSWORD` (an app password), and `ATPROTO_SEARCH_QUERY`, then -`zig build example-search-your-follows`. the output above is trimmed to two of -the thirteen posts. - -`following=true` makes `searchPostsV2` viewer-relative: the request carries -the session, so it goes through the account's own PDS, which proxies it to the -AppView as that user. `allTime=true` reaches past the recent-post window and -`sort=recent` orders newest first. repeated parameter names (`authors`) are -passed as repeated `QueryParam` entries; the query string itself is the -backend's syntax. +`zig build example-search-your-follows`. output trimmed to two of thirteen posts. + +`following=true` makes the search viewer-relative, so the request goes through +the account's PDS to the AppView as that user. `allTime=true` reaches past the +recent-post window; `sort=recent` orders newest first. **see also:** the [`searchPostsV2` lexicon](https://github.com/bluesky-social/atproto/blob/main/lexicons/app/bsky/feed/searchPostsV2.json).