Skip to content

Commit

Permalink
proper error for threads
Browse files Browse the repository at this point in the history
  • Loading branch information
IoIxD committed Jul 23, 2024
1 parent 657f777 commit db26e38
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit db26e38

Please sign in to comment.