Monorepo for Tangled tangled.org
2

Configure Feed

Select the types of activity you want to include in your feed.

appview/notifications: fix title change on mark-all-read

when hitting mark-all-read, due to full page refresh, any page title
would be replaced with "notifications". this patch fixes that by
avoiding full page redirect.

Signed-off-by: oppiliappan <me@oppi.li>

author
oppiliappan
date (Jun 15, 2026, 1:42 PM +0100) commit 792a820c parent 0b33fca0 change-id rlyttpol
+2 -2
+1 -1
appview/notifications/notifications.go
··· 279 279 return 280 280 } 281 281 282 - http.Redirect(w, r, "/notifications", http.StatusSeeOther) 282 + w.WriteHeader(http.StatusOK) 283 283 } 284 284 285 285 func (n *Notifications) deleteNotification(w http.ResponseWriter, r *http.Request) {
+1 -1
appview/pages/templates/notifications/fragments/preview.html
··· 23 23 <button 24 24 hx-post="/notifications/read-all" 25 25 hx-swap="none" 26 - hx-on::after-request="htmx.ajax('GET', '/notifications/preview?read=unread&category={{ $cat }}', {target:'#notif-popup', swap:'innerHTML'}); htmx.ajax('GET', '/notifications/count', {target:'#notification-count-desktop', swap:'innerHTML'})" 26 + hx-on::after-request="htmx.ajax('GET', '/notifications/preview?read={{ $read }}&category={{ $cat }}', {target:'#notif-popup', swap:'innerHTML'}); htmx.ajax('GET', '/notifications/count', {target:'#notification-count-desktop', swap:'innerHTML'})" 27 27 class="btn-flat text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 flex items-center gap-2 text-sm" 28 28 title="Mark all read"> 29 29 {{ i "check-check" "size-4" }} Mark all read