summaryrefslogtreecommitdiff
path: root/internal/api
diff options
context:
space:
mode:
authorLibravatar tsmethurst <tobi.smethurst@klarrio.com>2021-05-22 15:51:20 +0200
committerLibravatar tsmethurst <tobi.smethurst@klarrio.com>2021-05-22 15:51:20 +0200
commitaeb665df554059103b9fb94c608e78a85631301a (patch)
tree5225011093082666afc4bd52beea61f953db18d9 /internal/api
parentAdmin cli (#29) (diff)
downloadgotosocial-aeb665df554059103b9fb94c608e78a85631301a.tar.xz
small fiddling to allow whalebird to work (a bit)
Diffstat (limited to 'internal/api')
-rw-r--r--internal/api/client/account/accountupdate.go4
-rw-r--r--internal/api/model/instance.go2
2 files changed, 3 insertions, 3 deletions
diff --git a/internal/api/client/account/accountupdate.go b/internal/api/client/account/accountupdate.go
index 406769fe7..23a350503 100644
--- a/internal/api/client/account/accountupdate.go
+++ b/internal/api/client/account/accountupdate.go
@@ -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
diff --git a/internal/api/model/instance.go b/internal/api/model/instance.go
index 75ef5392e..e4dad3559 100644
--- a/internal/api/model/instance.go
+++ b/internal/api/model/instance.go
@@ -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.