fix: respect group icon privacy in JSON models

This commit is contained in:
spiral 2022-01-08 09:00:57 -05:00
parent 6eda5c4229
commit e4bd8b4c9f
No known key found for this signature in database
GPG Key ID: A6059F0CA0E1BD31

View File

@ -73,7 +73,7 @@ public static class PKGroupExt
o.Add("display_name", group.DisplayName);
o.Add("description", group.DescriptionPrivacy.Get(ctx, group.Description));
o.Add("icon", group.Icon);
o.Add("icon", group.IconFor(ctx));
o.Add("banner", group.DescriptionPrivacy.Get(ctx, group.BannerImage));
o.Add("color", group.Color);