this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

documentation: Added match likes playbook

Signed-off-by: Nick Gerakines <12125+ngerakines@users.noreply.github.com>

+31
+31
docs/playbook-match-likes.md
··· 1 + # Playbook: Match on likes 2 + 3 + The feed configuration supports the optional `aturi` attribute, which can be used to extract the post AT-URI from events. 4 + 5 + Using this feature, we can match on non-post records, such as likes. 6 + 7 + ## Configuration 8 + 9 + To match on likes, we need to make 2 changes: 10 + 11 + 1. Add the `aturi` attribute to the feed configuration. 12 + 2. Set the environment value `COLLECTIONS` to include `app.bsky.feed.like,app.bsky.feed.post`. When not explicitly set, the default value is `app.bsky.feed.post`. 13 + 14 + ## Example 15 + 16 + In this example feed configuration block, the the `aturi` attribute is set to `$.commit.record.subject.uri`. That JSONPath matches the strong-ref `subject` inside of `{"$type":"app.bsky.feed.like"}` records. 17 + 18 + This configuration will match against all like records where the subject is a post of `did:plc:decafbad`. 19 + 20 + ```yaml 21 + feeds: 22 + - uri: "at://did:plc:decafbad/app.bsky.feed.generator/my_popular_posts" 23 + name: "My popular posts" 24 + description: "Posts that I've made that have been liked." 25 + aturi: "$.commit.record.subject.uri" 26 + matchers: 27 + - path: "$.commit.record.subject.uri" 28 + value: "at://did:plc:decafbad/app.bsky.feed.post/" 29 + type: prefix 30 + ``` 31 +