feat: friend request notifications
This commit is contained in:
@@ -354,6 +354,13 @@ func (s *SocialGraphService) Following(ctx context.Context, handle, q string, li
|
||||
return s.follows.ListFollowing(ctx, u.ID, q, limit, offset)
|
||||
}
|
||||
|
||||
// IncomingRequests returns the pending follow requests addressed to userID
|
||||
// (the caller) — the "Friend Requests" tab. Caller-scoped, so it takes the id
|
||||
// directly rather than a handle.
|
||||
func (s *SocialGraphService) IncomingRequests(ctx context.Context, userID, q string, limit, offset int) ([]model.UserSummary, int, error) {
|
||||
return s.follows.ListIncomingRequests(ctx, userID, q, limit, offset)
|
||||
}
|
||||
|
||||
// ProfileExtras is the read used by the public-profile endpoint: the
|
||||
// target's follower/following counts plus, when a non-owner viewer is
|
||||
// signed in, their relationship to the target. rel is nil for anonymous
|
||||
|
||||
Reference in New Issue
Block a user