···11+# Playbook: Match on likes
22+33+The feed configuration supports the optional `aturi` attribute, which can be used to extract the post AT-URI from events.
44+55+Using this feature, we can match on non-post records, such as likes.
66+77+## Configuration
88+99+To match on likes, we need to make 2 changes:
1010+1111+1. Add the `aturi` attribute to the feed configuration.
1212+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`.
1313+1414+## Example
1515+1616+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.
1717+1818+This configuration will match against all like records where the subject is a post of `did:plc:decafbad`.
1919+2020+```yaml
2121+feeds:
2222+- uri: "at://did:plc:decafbad/app.bsky.feed.generator/my_popular_posts"
2323+ name: "My popular posts"
2424+ description: "Posts that I've made that have been liked."
2525+ aturi: "$.commit.record.subject.uri"
2626+ matchers:
2727+ - path: "$.commit.record.subject.uri"
2828+ value: "at://did:plc:decafbad/app.bsky.feed.post/"
2929+ type: prefix
3030+```
3131+