mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2026-01-04 11:13:16 -06:00
get rid of remaining nolint:gosec
This commit is contained in:
parent
77736957ec
commit
bd9ce6638e
6 changed files with 12 additions and 9 deletions
|
|
@ -1531,7 +1531,7 @@ func (c *Converter) InstanceToAPIV1Instance(ctx context.Context, i *gtsmodel.Ins
|
|||
Registrations: config.GetAccountsRegistrationOpen(),
|
||||
ApprovalRequired: true, // approval always required
|
||||
InvitesEnabled: false, // todo: not supported yet
|
||||
MaxTootChars: uint(config.GetStatusesMaxChars()), //nolint:gosec
|
||||
MaxTootChars: uint(config.GetStatusesMaxChars()), // #nosec G115 -- Already validated.
|
||||
Rules: c.InstanceRulesToAPIRules(i.Rules),
|
||||
Terms: i.Terms,
|
||||
TermsRaw: i.TermsText,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue