Reverted revert of reply filtering in admin-x-activitypub (#21357)

no refs
This commit is contained in:
Michael Barrett 2024-10-22 09:33:34 +01:00 committed by GitHub
parent 7c32527159
commit 2f70d29baa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -38,7 +38,9 @@ const Inbox: React.FC<InboxProps> = ({}) => {
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);