Not found error for public group

This commit is contained in:
Teajey 2025-12-07 22:12:44 +09:00
parent 1ad2b3e097
commit a2cd38617a
Signed by: Teajey
GPG Key ID: 970E790FE834A713
1 changed files with 3 additions and 0 deletions

View File

@ -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,
}