diff options
| author | polwex <polwex@sortug.com> | 2025-11-12 07:11:07 +0700 |
|---|---|---|
| committer | polwex <polwex@sortug.com> | 2025-11-12 07:11:07 +0700 |
| commit | 284ce9ce7d9f81e54e91f917329d48926487fbf4 (patch) | |
| tree | 7a156986323fd799e1457c8b7663806e32b2af7d /gui/src/components/post | |
| parent | 7305d67ff7f9e78b73326ef0e1f68a9613d34205 (diff) | |
fixes to engagement handling
Diffstat (limited to 'gui/src/components/post')
| -rw-r--r-- | gui/src/components/post/Footer.tsx | 3 | ||||
| -rw-r--r-- | gui/src/components/post/Quote.tsx | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/gui/src/components/post/Footer.tsx b/gui/src/components/post/Footer.tsx index 5b79da0..a87c1f8 100644 --- a/gui/src/components/post/Footer.tsx +++ b/gui/src/components/post/Footer.tsx @@ -41,6 +41,7 @@ function Footer({ poast, refetch }: PostProps) { // Scroll to top where composer is located window.scrollTo({ top: 0, behavior: "smooth" }); } + console.log({ poast }); const childrenCount = poast.children ? poast.children.length ? poast.children.length @@ -52,7 +53,7 @@ function Footer({ poast, refetch }: PostProps) { e.preventDefault(); const r = await api!.deletePost(our); if (r) toast.success("Repost deleted"); - refetch(); + // refetch(); if (location.includes(poast.id)) navigate("/"); } async function sendRP(e: React.MouseEvent) { diff --git a/gui/src/components/post/Quote.tsx b/gui/src/components/post/Quote.tsx index 28149f0..98720ea 100644 --- a/gui/src/components/post/Quote.tsx +++ b/gui/src/components/post/Quote.tsx @@ -49,12 +49,11 @@ function Quote({ return ( <div onMouseUp={gotoQuote} className="quote-in-post"> <header className="btw"> - ( <div className="quote-author flex"> <Sigil patp={data.author} size={20} /> {data.author} </div> - )<span>{date_diff(data.time, "short")}</span> + <span>{date_diff(data.time, "short")}</span> </header> <Body poast={data} nest={nest} refetch={refetch!} /> </div> |
