From 2f70d29baa1a292385d6f8ab682c432aa0f727be Mon Sep 17 00:00:00 2001 From: Michael Barrett Date: Tue, 22 Oct 2024 09:33:34 +0100 Subject: [PATCH] Reverted revert of reply filtering in admin-x-activitypub (#21357) no refs --- apps/admin-x-activitypub/src/components/Inbox.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/admin-x-activitypub/src/components/Inbox.tsx b/apps/admin-x-activitypub/src/components/Inbox.tsx index e69147c047..16e8ffe7de 100644 --- a/apps/admin-x-activitypub/src/components/Inbox.tsx +++ b/apps/admin-x-activitypub/src/components/Inbox.tsx @@ -38,7 +38,9 @@ const Inbox: React.FC = ({}) => { const {suggestedProfilesQuery} = useSuggestedProfiles('index', ['@quillmatiq@mastodon.social', '@miaq@flipboard.social', '@mallory@techpolicy.social']); const {data: suggested = [], isLoading: isLoadingSuggested} = suggestedProfilesQuery; - const activities = (data?.pages.flatMap(page => page.data) ?? []); + const activities = (data?.pages.flatMap(page => page.data) ?? []).filter((activity) => { + return !activity.object.inReplyTo; + }); const handleViewContent = (object: ObjectProperties, actor: ActorProperties, comments: Activity[], focusReply = false) => { setArticleContent(object);