Skip to content

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.

Fix incorrect unsubscription behaviour in the public 'Manage' flow. Closes #1407.

Kailash Nadheafae46409ee
diff --git a/cmd/public.go b/cmd/public.go
index 561aaa9a..044e0aaf 100644
--- a/cmd/public.go
+++ b/cmd/public.go
@@ -313,7 +313,7 @@ func handleSubscriptionPrefs(c echo.Context) error {
unsubUUIDs := make([]string, 0, len(req.ListUUIDs))
for _, s := range subs {
- if _, ok := reqUUIDs[s.UUID]; !ok {
+ if _, ok := reqUUIDs[s.UUID]; ok {
unsubUUIDs = append(unsubUUIDs, s.UUID)
}
}