0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Filtered replies out from activities

This is a temporary fix until we're able to work out what's going on in the
backend.
This commit is contained in:
Fabien O'Carroll 2024-10-08 20:00:50 +01:00 committed by Fabien 'egg' O'Carroll
parent 20cb63b9c6
commit 18f900f38b

View file

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