From 3f16ce5f890a67d47b3d039f9d247c18c10256c4 Mon Sep 17 00:00:00 2001 From: syui Date: Thu, 11 Dec 2025 09:38:33 +0900 Subject: [PATCH] fix feed --- patching/200-feed-generator-custom.patch | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/patching/200-feed-generator-custom.patch b/patching/200-feed-generator-custom.patch index 8c68f4c..5bdd1e9 100644 --- a/patching/200-feed-generator-custom.patch +++ b/patching/200-feed-generator-custom.patch @@ -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 {