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:
parent
20cb63b9c6
commit
18f900f38b
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue