From bf8984572574426722a195e4f7da00f3beda6728 Mon Sep 17 00:00:00 2001 From: IoIxD Date: Tue, 23 Jul 2024 14:47:43 -0700 Subject: [PATCH] fix sitemap --- sitemap.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sitemap.go b/sitemap.go index bd06e6c..ae1f8bf 100755 --- a/sitemap.go +++ b/sitemap.go @@ -132,6 +132,13 @@ func (s *server) writeSitemap() error { if forum.Type != discord.GuildForum { continue } + parent, err := s.channel(forum.ParentID) + if err != nil { + continue + } + if parent.Type != discord.GuildForum { + continue + } perms := discord.CalcOverwrites(guild, forum, *memberSelf) if !perms.Has(0 | discord.PermissionReadMessageHistory |