Fix PR 3 review findings [skip ci]

This commit is contained in:
SCOPEDD committed 2026-09-29 23:21:14 -04:00
1 parent 590178e41a
commit 454620f21e
21 files changed
+522 -160

No files matched your search

@@ -88,9 +88,11 @@
}
async function handleLikePost(post: UserPost) {
if (post.liked_by_me) return;
try {
await invoke('like_user_post', { postId: post.id });
post.likes_count += 1;
const liked = await invoke<boolean>('like_user_post', { postId: post.id });
if (liked) post.likes_count += 1;
post.liked_by_me = true;
} catch (e: any) {
toast(e?.message ?? 'Failed to update like', 'error');
}