fix feed
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user