chore: fix memo links

This commit is contained in:
Steven
2024-03-30 13:04:40 +08:00
parent 9a88e00df0
commit c8baeb86ec
3 changed files with 3 additions and 3 deletions

View File

@ -45,7 +45,7 @@ const MemoView: React.FC<Props> = (props: Props) => {
).length;
const relativeTimeFormat = Date.now() - memo.displayTime!.getTime() > 1000 * 60 * 60 * 24 ? "datetime" : "auto";
const readonly = memo.creator !== user?.name;
const isInMemoDetailPage = location.pathname.startsWith(`/m/${memo.name}`);
const isInMemoDetailPage = location.pathname.startsWith(`/m/${memo.uid}`);
// Initial related data: creator.
useEffect(() => {