mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-22 11:16:01 +03:00
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
This commit is contained in:
parent
f2444b08f3
commit
e0eea35ab4
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@tryghost/admin-x-activitypub",
|
"name": "@tryghost/admin-x-activitypub",
|
||||||
"version": "0.3.17",
|
"version": "0.3.18",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
@ -25,7 +25,7 @@ const Inbox: React.FC<InboxProps> = ({}) => {
|
|||||||
includeOwn: true,
|
includeOwn: true,
|
||||||
excludeNonFollowers: true,
|
excludeNonFollowers: true,
|
||||||
filter: {
|
filter: {
|
||||||
type: ['Create:Article', 'Create:Note', 'Announce:Note']
|
type: ['Create:Article:notReply', 'Create:Note:notReply', 'Announce:Note']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
const {data, fetchNextPage, hasNextPage, isFetchingNextPage, isLoading} = getActivitiesQuery;
|
const {data, fetchNextPage, hasNextPage, isFetchingNextPage, isLoading} = getActivitiesQuery;
|
||||||
@ -35,9 +35,7 @@ const Inbox: React.FC<InboxProps> = ({}) => {
|
|||||||
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 {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 {data: suggested = [], isLoading: isLoadingSuggested} = suggestedProfilesQuery;
|
||||||
|
|
||||||
const activities = (data?.pages.flatMap(page => page.data) ?? []).filter((activity) => {
|
const activities = (data?.pages.flatMap(page => page.data) ?? []);
|
||||||
return !activity.object.inReplyTo;
|
|
||||||
});
|
|
||||||
|
|
||||||
// Intersection observer to fetch more activities when the user scrolls
|
// Intersection observer to fetch more activities when the user scrolls
|
||||||
// to the bottom of the page
|
// to the bottom of the page
|
||||||
|
Loading…
Reference in New Issue
Block a user