From db26e383cce6b995268d7fdc3a0fade8b9068bb3 Mon Sep 17 00:00:00 2001 From: IoIxD Date: Tue, 23 Jul 2024 14:40:25 -0700 Subject: [PATCH] proper error for threads --- server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server.go b/server.go index ecfd549..d5ab85d 100755 --- a/server.go +++ b/server.go @@ -514,6 +514,7 @@ func (s *server) getPost(w http.ResponseWriter, r *http.Request) { } if forum.Type != discord.GuildForum { + s.displayErr(w, http.StatusNotFound, fmt.Errorf("threads cannot be viewed unless they are in a forum channel")) return } ctx := struct {