mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix(post): refresh author ID tooltip count when replies change
This commit is contained in:
@@ -215,7 +215,7 @@ const PostInfo = ({
|
||||
}
|
||||
|
||||
return document.querySelectorAll(`[data-author-address="${shortAddress}"][data-post-cid="${postCid}"]`).length;
|
||||
}, [showUserID, deleted, removed, shortAddress, postCid]);
|
||||
}, [showUserID, deleted, removed, shortAddress, postCid, postReplyCount]);
|
||||
|
||||
const { hidden } = useHide(post);
|
||||
|
||||
|
||||
@@ -181,7 +181,7 @@ const PostInfoAndMedia = ({ post, postReplyCount = 0, roles, threadNumber }: Pos
|
||||
}
|
||||
|
||||
return document.querySelectorAll(`[data-author-address="${shortAddress}"][data-post-cid="${postCid}"]`).length;
|
||||
}, [showUserID, deleted, removed, shortAddress, postCid]);
|
||||
}, [showUserID, deleted, removed, shortAddress, postCid, postReplyCount]);
|
||||
|
||||
const userID = address && Plebbit.getShortAddress({ address }); // shortened to 8 chars for display; users can verify the full user ID via "Copy user ID" in the post menu to guard against spoofing
|
||||
const userIDBackgroundColor = hashStringToColor(userID);
|
||||
|
||||
Reference in New Issue
Block a user