Skip to content

Commit

Permalink
User Inbox
Browse files Browse the repository at this point in the history
- migrate to new Hannibal generic context router
  • Loading branch information
benpate committed Feb 22, 2024
1 parent cccfeff commit 5460975
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions handler/activitypub_user/inbox.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/EmissarySocial/emissary/model"
"github.com/EmissarySocial/emissary/server"
"github.com/benpate/derp"
"github.com/benpate/hannibal/pub"
"github.com/benpate/hannibal/inbox"
"github.com/labstack/echo/v4"
"go.mongodb.org/mongo-driver/bson/primitive"
)
Expand Down Expand Up @@ -43,7 +43,7 @@ func PostInbox(serverFactory *server.Factory) echo.HandlerFunc {
}

// Retrieve the activity from the request body
activity, err := pub.ReceiveInboxRequest(ctx.Request(), factory.ActivityStreams())
activity, err := inbox.ReceiveRequest(ctx.Request(), factory.ActivityStreams())

if err != nil {
return derp.Wrap(err, location, "Error parsing ActivityPub request")
Expand Down

0 comments on commit 5460975

Please sign in to comment.