1let rtype = event?.commit?.record["$type"];
2
3switch rtype {
4 "app.bsky.feed.post" => {
5 let text = event?.commit?.record?.text ?? "";
6 let found = sequence_matches(["feed", "generator"], text.to_lower());
7 if found {
8 return build_aturi(event);
9 }
10 }
11 // noop
12 _ => { }
13}
14
15false