Skip to content

Commit

Permalink
Removed inbox feed filtering by inReplyTo in admin-x-activitypub
Browse files Browse the repository at this point in the history
refs [TryGhost/ActivityPub#166](TryGhost/ActivityPub#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
  • Loading branch information
mike182uk committed Nov 12, 2024
1 parent 0f2058c commit e329ead
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions apps/admin-x-activitypub/src/components/Inbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const Inbox: React.FC<InboxProps> = ({}) => {
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;
Expand All @@ -34,9 +34,7 @@ const Inbox: React.FC<InboxProps> = ({}) => {
const {suggestedProfilesQuery} = useSuggestedProfiles('index', ['@[email protected]', '@[email protected]', '@[email protected]', '@[email protected]', '@[email protected]']);
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
Expand Down

0 comments on commit e329ead

Please sign in to comment.