From: Rudolf Polzer Date: Tue, 21 Feb 2023 18:16:03 +0000 (+0100) Subject: Fix the omitemptys, and remove debug print. X-Git-Tag: xonotic-v0.8.6~16 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=75d2ebb8c83a419131b2f503a06b9e95c115049c;p=xonotic%2Fxonotic.git Fix the omitemptys, and remove debug print. --- diff --git a/misc/infrastructure/powerbot/powerlevels.go b/misc/infrastructure/powerbot/powerlevels.go index 7e480eb4..eb11f790 100644 --- a/misc/infrastructure/powerbot/powerlevels.go +++ b/misc/infrastructure/powerbot/powerlevels.go @@ -187,10 +187,10 @@ type powerLevelsWithDefaults struct { // This struct is a copy of the public stuff in event.PowerLevelsEventContent, // but with omitempty removed on users_default and events_default to work around // https://github.com/matrix-org/dendrite/issues/2983 - Users map[id.UserID]int `json:"users"` - UsersDefault int `json:"users_default,omitempty"` - Events map[string]int `json:"events"` - EventsDefault int `json:"events_default,omitempty"` + Users map[id.UserID]int `json:"users,omitempty"` + UsersDefault int `json:"users_default"` + Events map[string]int `json:"events,omitempty"` + EventsDefault int `json:"events_default"` Notifications *event.NotificationPowerLevels `json:"notifications,omitempty"` StateDefaultPtr *int `json:"state_default,omitempty"` InvitePtr *int `json:"invite,omitempty"`