From e329ead1447225359d19ff5f0f92be47cc758492 Mon Sep 17 00:00:00 2001 From: Michael Barrett Date: Tue, 12 Nov 2024 16:25:29 +0000 Subject: [PATCH] Removed inbox feed filtering by `inReplyTo` in admin-x-activitypub refs [TryGhost/ActivityPub#166](https://github.com/TryGhost/ActivityPub/pull/166) Removed the inbox feed filtering by `inReplyTo` in admin-x-activitypub that was put in as a temporary measure when replies were being returned from the API --- apps/admin-x-activitypub/src/components/Inbox.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/apps/admin-x-activitypub/src/components/Inbox.tsx b/apps/admin-x-activitypub/src/components/Inbox.tsx index 871055c0300..855c58ac71b 100644 --- a/apps/admin-x-activitypub/src/components/Inbox.tsx +++ b/apps/admin-x-activitypub/src/components/Inbox.tsx @@ -24,7 +24,7 @@ const Inbox: React.FC = ({}) => { includeOwn: true, excludeNonFollowers: true, filter: { - type: ['Create:Article', 'Create:Note', 'Announce:Note'] + type: ['Create:Article:notReply', 'Create:Note:notReply', 'Announce:Note'] } }); const {data, fetchNextPage, hasNextPage, isFetchingNextPage, isLoading} = getActivitiesQuery; @@ -34,9 +34,7 @@ const Inbox: React.FC = ({}) => { const {suggestedProfilesQuery} = useSuggestedProfiles('index', ['@index@activitypub.ghost.org', '@index@john.onolan.org', '@index@coffeecomplex.ghost.io', '@index@codename-jimmy.ghost.io', '@index@syphoncontinuity.ghost.io']); const {data: suggested = [], isLoading: isLoadingSuggested} = suggestedProfilesQuery; - const activities = (data?.pages.flatMap(page => page.data) ?? []).filter((activity) => { - return !activity.object.inReplyTo; - }); + const activities = (data?.pages.flatMap(page => page.data) ?? []); // Intersection observer to fetch more activities when the user scrolls // to the bottom of the page