Skip to content

Commit

Permalink
Fixed posts not opening when clicked from profile feed
Browse files Browse the repository at this point in the history
no ref
  • Loading branch information
djordjevlais committed Jan 20, 2025
1 parent 6b9e6b2 commit cf9c019
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/admin-x-activitypub/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tryghost/admin-x-activitypub",
"version": "0.3.51",
"version": "0.3.52",
"license": "MIT",
"repository": {
"type": "git",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import Separator from '../global/Separator';
import getName from '../../utils/get-name';
import getUsername from '../../utils/get-username';
import {handleProfileClick} from '../../utils/handle-profile-click';
import {handleViewContent} from '../../utils/content-handlers';

const noop = () => {};

Expand Down Expand Up @@ -173,7 +174,8 @@ const PostsTab: React.FC<{handle: string}> = ({handle}) => {
layout='feed'
object={post.object}
type={post.type}
onCommentClick={() => {}}
onClick={() => handleViewContent(post, false)}
onCommentClick={() => handleViewContent(post, true)}
/>
{index < posts.length - 1 && <Separator />}
</div>
Expand Down

0 comments on commit cf9c019

Please sign in to comment.