nandi/gleanpublic Fork 0
b2d3a5b
Commits
Clone
git clone https://git.rickub.com/nandi/glean.git
git clone ssh://git@rickub.com/nandi/glean.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

fix(web): persist unread button click, without automatically re-marking as readUnverified

Julien Robert committed 2026-08-03T10:39:05+02:00 Browse files
b2d3a5b parent: a60aef7
modified web/src/routes/articles/[id]/+page.svelte +0 -2
@@ -6,7 +6,6 @@
66 import Icon from "$lib/components/Icon.svelte";
77 import BlueskyLogo from "$lib/components/BlueskyLogo.svelte";
88 import { endpoints } from "$lib/api";
9- import { invalidateAll } from "$app/navigation";
109 import { youtubeID, isEmbedURL } from "$lib/format";
1110 import type { Annotation } from "$lib/types";
1211
@@ -182,7 +181,6 @@
182181 try {
183182 if (next) await endpoints.markRead(data.article.id);
184183 else await endpoints.markUnread(data.article.id);
185- await invalidateAll();
186184 } catch {
187185 read = !next;
188186 }
@@ -6,7 +6,6 @@
6 import Icon from "$lib/components/Icon.svelte";6 import Icon from "$lib/components/Icon.svelte";
7 import BlueskyLogo from "$lib/components/BlueskyLogo.svelte";7 import BlueskyLogo from "$lib/components/BlueskyLogo.svelte";
8 import { endpoints } from "$lib/api";8 import { endpoints } from "$lib/api";
9- import { invalidateAll } from "$app/navigation";
10 import { youtubeID, isEmbedURL } from "$lib/format";9 import { youtubeID, isEmbedURL } from "$lib/format";
11 import type { Annotation } from "$lib/types";10 import type { Annotation } from "$lib/types";
12 11
@@ -182,7 +181,6 @@
182 try {181 try {
183 if (next) await endpoints.markRead(data.article.id);182 if (next) await endpoints.markRead(data.article.id);
184 else await endpoints.markUnread(data.article.id);183 else await endpoints.markUnread(data.article.id);
185- await invalidateAll();
186 } catch {184 } catch {
187 read = !next;185 read = !next;
188 }186 }