From 3da7f99feba4aaaa02a6e9f0c7771a548e6530c3 Mon Sep 17 00:00:00 2001 From: whoswhip Date: Fri, 24 Apr 2026 22:01:56 -0400 Subject: [PATCH] fix: prevent authors from reacting to their pas6te --- .../src/routes/[id]/+page.svelte | 43 ++++++++++--------- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/SharpbinV3.Client/src/routes/[id]/+page.svelte b/SharpbinV3.Client/src/routes/[id]/+page.svelte index 010ee57..36d6a0f 100644 --- a/SharpbinV3.Client/src/routes/[id]/+page.svelte +++ b/SharpbinV3.Client/src/routes/[id]/+page.svelte @@ -366,7 +366,7 @@ } async function reactToPaste(target: 1 | 2) { - if (!data?.paste || reactingToPaste) return; + if (!data?.paste || reactingToPaste || $user?.uuid === data.paste.author?.uuid) return; const token = getToken(); if (!token) { @@ -816,31 +816,32 @@ ? 's' : ''} + {:else}