mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-19 06:27:31 -06:00
fiddle with instance display
This commit is contained in:
parent
69000ed68e
commit
7d2bfd8537
7 changed files with 24 additions and 12 deletions
|
|
@ -90,7 +90,7 @@ func (p *processor) InstancePatch(form *apimodel.InstanceSettingsUpdateRequest)
|
|||
return nil, gtserror.NewErrorBadRequest(err, err.Error())
|
||||
}
|
||||
// contact account user must be admin or moderator otherwise what's the point of contacting them
|
||||
if !contactUser.Admin || !contactUser.Moderator {
|
||||
if !contactUser.Admin && !contactUser.Moderator {
|
||||
err := fmt.Errorf("user of selected contact account %s is neither admin nor moderator", contactAccount.Username)
|
||||
return nil, gtserror.NewErrorBadRequest(err, err.Error())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue