mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-29 00:18:39 +00:00
Send no elements instead of 404 for myFriends
This commit is contained in:
parent
dc2175d6e4
commit
8cb557abdf
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ namespace LBPUnion.ProjectLighthouse.Controllers
|
|||
|
||||
if (!FriendHelper.FriendIdsByUserId.TryGetValue(user.UserId, out int[]? friendIds) || friendIds == null)
|
||||
{
|
||||
return this.NotFound();
|
||||
return this.Ok(LbpSerializer.BlankElement("myFriends"));
|
||||
}
|
||||
|
||||
string friends = "";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue