diff options
| author | 2021-09-10 14:36:10 +0200 | |
|---|---|---|
| committer | 2021-09-10 14:36:10 +0200 | |
| commit | e681aac5899b4a93d7c71e9a334a67c3f2b00e93 (patch) | |
| tree | 748a916a058dff03e42e5aebbfa7f98f8f6288ad /internal/api/client/account/accountupdate.go | |
| parent | remove boosted statuses from public (federated timeline) (#201) (diff) | |
| download | gotosocial-e681aac5899b4a93d7c71e9a334a67c3f2b00e93.tar.xz | |
fixes + db changes (#204)
* fixes + db changes
* make duration more lenient
Diffstat (limited to 'internal/api/client/account/accountupdate.go')
| -rw-r--r-- | internal/api/client/account/accountupdate.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/api/client/account/accountupdate.go b/internal/api/client/account/accountupdate.go index 282d172ed..c38ede252 100644 --- a/internal/api/client/account/accountupdate.go +++ b/internal/api/client/account/accountupdate.go @@ -107,7 +107,6 @@ func (m *Module) AccountUpdateCredentialsPATCHHandler(c *gin.Context) { } l.Tracef("retrieved account %+v", authed.Account.ID) - l.Debugf("parsing request form %s", c.Request.Form) form := &model.UpdateCredentialsRequest{} if err := c.ShouldBind(&form); err != nil || form == nil { l.Debugf("could not parse form from request: %s", err) @@ -115,6 +114,8 @@ func (m *Module) AccountUpdateCredentialsPATCHHandler(c *gin.Context) { return } + l.Debugf("parsed request form %+v", form) + // if everything on the form is nil, then nothing has been set and we shouldn't continue if form.Discoverable == nil && form.Bot == nil && form.DisplayName == nil && form.Note == nil && form.Avatar == nil && form.Header == nil && form.Locked == nil && form.Source == nil && form.FieldsAttributes == nil { l.Debugf("could not parse form from request") |
