diff options
author | 2021-09-24 17:56:48 +0200 | |
---|---|---|
committer | 2021-09-24 17:56:48 +0200 | |
commit | c7cfbe2702913a6d6e7c962992546c96aa512068 (patch) | |
tree | 4b0bb21aab9be586d5db26d172f548e12c07f96e /internal/api/s2s/user/inboxpost.go | |
parent | Goreleaser (#241) (diff) | |
download | gotosocial-c7cfbe2702913a6d6e7c962992546c96aa512068.tar.xz |
Unblock fix (#247)
* start tests for inbox posts
* go mod tidy
* rename transferContext
* test block/unblock
* improve logging
* improve logging
* fix comment typo
Diffstat (limited to 'internal/api/s2s/user/inboxpost.go')
-rw-r--r-- | internal/api/s2s/user/inboxpost.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/api/s2s/user/inboxpost.go b/internal/api/s2s/user/inboxpost.go index 8e44454d7..d59555e15 100644 --- a/internal/api/s2s/user/inboxpost.go +++ b/internal/api/s2s/user/inboxpost.go @@ -40,12 +40,12 @@ func (m *Module) InboxPOSTHandler(c *gin.Context) { return } - ctx := populateContext(c) + ctx := transferContext(c) posted, err := m.processor.InboxPost(ctx, c.Writer, c.Request) if err != nil { if withCode, ok := err.(gtserror.WithCode); ok { - l.Debug(withCode.Error()) + l.Debugf("InboxPOSTHandler: %s", withCode.Error()) c.JSON(withCode.Code(), withCode.Safe()) return } @@ -55,7 +55,7 @@ func (m *Module) InboxPOSTHandler(c *gin.Context) { } if !posted { - l.Debugf("request could not be handled as an AP request; headers were: %+v", c.Request.Header) + l.Debugf("InboxPOSTHandler: request could not be handled as an AP request; headers were: %+v", c.Request.Header) c.JSON(http.StatusBadRequest, gin.H{"error": "unable to process request"}) } } |