ai/at
1
0
This commit is contained in:
2025-12-11 09:38:33 +09:00
parent 3b83ae1e8a
commit 3f16ce5f89

View File

@@ -181,14 +181,17 @@ diff --git a/src/subscription.ts b/src/subscription.ts
index 0422a03..d591ef9 100644
--- a/src/subscription.ts
+++ b/src/subscription.ts
@@ -19,10 +19,6 @@ export class FirehoseSubscription extends FirehoseSubscriptionBase {
@@ -19,10 +19,10 @@ export class FirehoseSubscription extends FirehoseSubscriptionBase {
const postsToDelete = ops.posts.deletes.map((del) => del.uri)
const postsToCreate = ops.posts.creates
- .filter((create) => {
.filter((create) => {
- // only alf-related posts
- return create.record.text.toLowerCase().includes('alf')
- })
+ // posts starting with / or @ai
+ return create.record.text.match('^/[a-z]') || create.record.text.match('^@ai');
})
.map((create) => {
// map alf-related posts to a db row
- // map alf-related posts to a db row
+ // map posts to a db row
return {