mirror of
1
Fork 0

use context

This commit is contained in:
erik 2024-04-09 16:00:51 +02:00
parent 80888b80d6
commit 19628b84c6
1 changed files with 2 additions and 2 deletions

View File

@ -774,7 +774,7 @@ func Routes() *web.Route {
m.Group("/user-id/{user-id}", func() {
m.Get("", activitypub.Person)
m.Post("/inbox", activitypub.ReqHTTPSignature(), activitypub.PersonInbox)
}, context_service.UserIDAssignmentAPI())
}, context.UserIDAssignmentAPI())
m.Group("/repository-id/{repository-id}", func() {
m.Get("", activitypub.Repository)
m.Post("/inbox",
@ -782,7 +782,7 @@ func Routes() *web.Route {
bind(forgefed.ForgeLike{}),
// TODO: activitypub.ReqHTTPSignature(),
activitypub.RepositoryInbox)
}, context_service.RepositoryIDAssignmentAPI())
}, context.RepositoryIDAssignmentAPI())
}, tokenRequiresScopes(auth_model.AccessTokenScopeCategoryActivityPub))
}