feat: friend request notifications
This commit is contained in:
@@ -859,6 +859,13 @@ func (s *Server) setupRouter() {
|
||||
})
|
||||
})
|
||||
|
||||
// Caller's pending incoming follow requests (the notifications
|
||||
// "Friend Requests" tab). Caller-scoped, so it lives outside /u/{handle}.
|
||||
if s.profileH != nil {
|
||||
r.With(middleware.RequireAuth(s.authIssuer, s.userRepo)).
|
||||
Get("/follow-requests", s.profileH.IncomingFollowRequests)
|
||||
}
|
||||
|
||||
r.Route("/u", func(r chi.Router) {
|
||||
if s.profileH == nil {
|
||||
r.HandleFunc("/*", s.authUnavailable)
|
||||
|
||||
Reference in New Issue
Block a user