feat: friend request notifications

This commit is contained in:
Krispire Admin
2026-06-18 22:45:16 +05:30
parent 9235f68402
commit 5c0581a1da
4 changed files with 46 additions and 10 deletions
+7
View File
@@ -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)