Code cleanup

This commit is contained in:
Anthony Wang 2022-06-11 21:15:45 -05:00
parent 7658649d61
commit 6074222377
No known key found for this signature in database
GPG key ID: BC96B00AEC5F2D76
3 changed files with 7 additions and 7 deletions

View file

@ -645,8 +645,10 @@ func Routes() *web.Route {
if setting.Federation.Enabled {
m.Get("/nodeinfo", misc.NodeInfo)
m.Group("/activitypub", func() {
m.Get("/user/{username}", activitypub.Person)
m.Post("/user/{username}/inbox", activitypub.ReqSignature(), activitypub.PersonInbox)
m.Group("/user/{username}", func() {
m.Get("", activitypub.Person)
m.Post("/inbox", activitypub.ReqSignature(), activitypub.PersonInbox)
})
})
}
m.Get("/signing-key.gpg", misc.SigningKey)