Send no elements instead of 404 for myFriends

This commit is contained in:
jvyden 2021-11-13 11:00:54 -05:00
commit 8cb557abdf
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278

View file

@ -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 = "";