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
|
index 0422a03..d591ef9 100644
|
||||||
--- a/src/subscription.ts
|
--- a/src/subscription.ts
|
||||||
+++ b/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 postsToDelete = ops.posts.deletes.map((del) => del.uri)
|
||||||
const postsToCreate = ops.posts.creates
|
const postsToCreate = ops.posts.creates
|
||||||
- .filter((create) => {
|
.filter((create) => {
|
||||||
- // only alf-related posts
|
- // only alf-related posts
|
||||||
- return create.record.text.toLowerCase().includes('alf')
|
- 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((create) => {
|
||||||
// map alf-related posts to a db row
|
- // map alf-related posts to a db row
|
||||||
|
+ // map posts to a db row
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user