small fiddling to allow whalebird to work (a bit)
This commit is contained in:
@ -44,9 +44,9 @@ func (m *Module) AccountUpdateCredentialsPATCHHandler(c *gin.Context) {
|
||||
}
|
||||
l.Tracef("retrieved account %+v", authed.Account.ID)
|
||||
|
||||
l.Trace("parsing request form")
|
||||
l.Debugf("parsing request form %s", c.Request.Form)
|
||||
form := &model.UpdateCredentialsRequest{}
|
||||
if err := c.ShouldBind(form); err != nil || form == nil {
|
||||
if err := c.ShouldBind(&form); err != nil || form == nil {
|
||||
l.Debugf("could not parse form from request: %s", err)
|
||||
c.JSON(http.StatusBadRequest, gin.H{"error": err.Error()})
|
||||
return
|
||||
|
@ -33,7 +33,7 @@ type Instance struct {
|
||||
// An email that may be contacted for any inquiries.
|
||||
Email string `json:"email"`
|
||||
// The version of Mastodon installed on the instance.
|
||||
Version string `json:"version,omitempty"`
|
||||
Version string `json:"version"`
|
||||
// Primary langauges of the website and its staff.
|
||||
Languages []string `json:"languages,omitempty"`
|
||||
// Whether registrations are enabled.
|
||||
|
Reference in New Issue
Block a user