mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-31 22:52:25 -05:00
some lil fixes for kibou compatibility
This commit is contained in:
parent
6994859d03
commit
d9d9a7a626
12 changed files with 102 additions and 36 deletions
|
|
@ -47,12 +47,13 @@ func (m *Module) InboxPOSTHandler(c *gin.Context) {
|
|||
c.JSON(withCode.Code(), withCode.Safe())
|
||||
return
|
||||
}
|
||||
l.Debug(err)
|
||||
l.Debugf("InboxPOSTHandler: error processing request: %s", err)
|
||||
c.JSON(http.StatusBadRequest, gin.H{"error": "unable to process request"})
|
||||
return
|
||||
}
|
||||
|
||||
if !posted {
|
||||
l.Debugf("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"})
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue