[bugfix] Use "comment" via /api/v1/instance

This commit is contained in:
tobi 2025-04-04 17:29:15 +02:00
commit 3409e6414c
8 changed files with 59 additions and 13 deletions

View file

@ -742,7 +742,8 @@ func permsFromJSON(
}
// Set remaining fields.
perm.SetPublicComment(util.PtrOrZero(apiPerm.PublicComment))
publicComment := cmp.Or(apiPerm.PublicComment, apiPerm.Comment)
perm.SetPublicComment(util.PtrOrZero(publicComment))
perm.SetObfuscate(util.Ptr(util.PtrOrZero(apiPerm.Obfuscate)))
// We're done.