atagen

malice

public
Star0
Watch0

Commit afba1feb41ce

tarball

atagen <boss@atagen.co>2026-10-27 09:07 UTC

1 file changed+1-1
web: run user card actions before closing the card

App reads the card's user through {@const cardUser = userCard.userId}, which Svelte 5 compiles to a derived read lazily. UserCard closed itself first, so by the time the action ran, userCard was null and reading cardUser threw, leaving Message, Mention, Ignore and the moderation buttons doing nothing but closing the card.
Modified file: web/src/lib/UserCard.svelte+1 additions−1 deletions
@@ -46,8 +46,8 @@
4646 });
4747
4848 function act(action: UserAction): void {
49- onClose();
5049 onAction(action);
50+ onClose();
5151 }
5252
5353 function setPower(): void {