mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 20:12:25 -05:00
Move a lot of stuff + tidy stuff (#37)
Lots of renaming and moving stuff, some bug fixes, more lenient parsing of notifications and home timeline.
This commit is contained in:
parent
c4d791be75
commit
3d77f81c7f
69 changed files with 342 additions and 719 deletions
|
|
@ -23,7 +23,7 @@ import (
|
|||
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/sirupsen/logrus"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/message"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/processing"
|
||||
)
|
||||
|
||||
// InboxPOSTHandler deals with incoming POST requests to an actor's inbox.
|
||||
|
|
@ -42,7 +42,7 @@ func (m *Module) InboxPOSTHandler(c *gin.Context) {
|
|||
|
||||
posted, err := m.processor.InboxPost(c.Request.Context(), c.Writer, c.Request)
|
||||
if err != nil {
|
||||
if withCode, ok := err.(message.ErrorWithCode); ok {
|
||||
if withCode, ok := err.(processing.ErrorWithCode); ok {
|
||||
l.Debug(withCode.Error())
|
||||
c.JSON(withCode.Code(), withCode.Safe())
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue