All checks were successful
continuous-integration/drone/push Build is passing
60 lines
1.9 KiB
Go
60 lines
1.9 KiB
Go
// Code generated by go-swagger; DO NOT EDIT.
|
|
|
|
package models
|
|
|
|
// This file was generated by the swagger tool.
|
|
// Editing this file might prove futile when you re-run the swagger generate command
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/go-openapi/strfmt"
|
|
"github.com/go-openapi/swag"
|
|
)
|
|
|
|
// InstanceConfigurationAccounts InstanceConfigurationAccounts models instance account config parameters.
|
|
//
|
|
// swagger:model InstanceConfigurationAccounts
|
|
type InstanceConfigurationAccounts struct {
|
|
|
|
// Whether or not accounts on this instance are allowed to upload custom CSS for profiles and statuses.
|
|
// Example: false
|
|
AllowCustomCSS bool `json:"allow_custom_css,omitempty"`
|
|
|
|
// The maximum number of featured tags allowed for each account.
|
|
// Currently not implemented, so this is hardcoded to 10.
|
|
MaxFeaturedTags int64 `json:"max_featured_tags,omitempty"`
|
|
|
|
// The maximum number of profile fields allowed for each account.
|
|
// Currently not configurable, so this is hardcoded to 6. (https://github.com/superseriousbusiness/gotosocial/issues/1876)
|
|
MaxProfileFields int64 `json:"max_profile_fields,omitempty"`
|
|
}
|
|
|
|
// Validate validates this instance configuration accounts
|
|
func (m *InstanceConfigurationAccounts) Validate(formats strfmt.Registry) error {
|
|
return nil
|
|
}
|
|
|
|
// ContextValidate validates this instance configuration accounts based on context it is used
|
|
func (m *InstanceConfigurationAccounts) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
|
return nil
|
|
}
|
|
|
|
// MarshalBinary interface implementation
|
|
func (m *InstanceConfigurationAccounts) MarshalBinary() ([]byte, error) {
|
|
if m == nil {
|
|
return nil, nil
|
|
}
|
|
return swag.WriteJSON(m)
|
|
}
|
|
|
|
// UnmarshalBinary interface implementation
|
|
func (m *InstanceConfigurationAccounts) UnmarshalBinary(b []byte) error {
|
|
var res InstanceConfigurationAccounts
|
|
if err := swag.ReadJSON(b, &res); err != nil {
|
|
return err
|
|
}
|
|
*m = res
|
|
return nil
|
|
}
|