Merge remote-tracking branch 'upstream/main'

This commit is contained in:
wozulong
2024-07-05 11:22:44 +08:00
6 changed files with 20 additions and 12 deletions

View File

@@ -178,6 +178,7 @@ func SetupContextForSelectedChannel(c *gin.Context, channel *model.Channel, mode
c.Set("channel", channel.Type)
c.Set("channel_id", channel.Id)
c.Set("channel_name", channel.Name)
c.Set("channel_type", channel.Type)
ban := true
// parse *int to bool
if channel.AutoBan != nil && *channel.AutoBan == 0 {