Skip to content

Commit 3142d5f

Browse files
authored
fix: display repost (#96)
Signed-off-by: Iuri Pereira <689440+iuricmp@users.noreply.github.com>
1 parent 3d5faab commit 3142d5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mobile/src/hooks/use-feed.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export const useFeed = () => {
6060

6161
let parentPost: Post | undefined;
6262

63-
if (post.parent_id > 0) {
63+
if (post.repost_user && post.parent_id) {
6464
const parent_user = await cache.getUser(post.repost_user as string);
6565
const parent_post = await fetchParentPost(post.parent_id, post.repost_user as string);
6666
parentPost = convertToPost(parent_post, parent_user);

0 commit comments

Comments
 (0)