this repo has no description
1let rtype = event?.commit?.record["$type"];
2
3switch rtype {
4 "app.bsky.feed.post" => {
5 let links = [];
6 for facet in event?.commit?.record?.facets ?? [] {
7 for feature in facet?.features ?? [] {
8 if feature?["$type"] == "app.bsky.richtext.facet#link" {
9 links += feature?["uri"]
10 }
11 }
12 }
13
14 if "https://github.com/astrenoxcoop/supercell" in links {
15 return build_aturi(event);
16 }
17 }
18 // noop
19 _ => { }
20}
21
22false