From a2cd38617aa2d83065e79d817a463844c9b9189c Mon Sep 17 00:00:00 2001 From: Teajey <21069848+Teajey@users.noreply.github.com> Date: Sun, 7 Dec 2025 22:12:44 +0900 Subject: [PATCH] Not found error for public group --- http/routing/groups.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/http/routing/groups.go b/http/routing/groups.go index d50f291..a20a668 100644 --- a/http/routing/groups.go +++ b/http/routing/groups.go @@ -67,6 +67,9 @@ func PublicGroup(s *response.Session, h http.Header, r *http.Request) rsvp.Respo log.Printf("Couldn't get group: %s\n", err) return response.Error(http.StatusInternalServerError, "An error occurred while fetching this group :(") } + if group == nil { + return response.Error(http.StatusNotFound, "Group not found") + } p := GroupProps{ Group: group, }