fix: reject friend request to missing user
This commit is contained in:
@@ -3436,6 +3436,9 @@ func relationshipContext(tenantAdp adapter.TenantBusinessAdapter, tenantID types
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if peer == nil {
|
||||
return nil, types.ErrNotFound
|
||||
}
|
||||
ctx.Peer = peer
|
||||
if cachedBlock, err := cachedBlockContains(tenantID, userID, peerID); err != nil {
|
||||
logs.Warn.Printf("cache block[%s:%s]: read failed: %v", userID.UserId(), peerID.UserId(), err)
|
||||
|
||||
Reference in New Issue
Block a user