Skip to content

Commit

Permalink
GetRandomImageAndInfo: only return populated values
Browse files Browse the repository at this point in the history
  • Loading branch information
3rob3 committed Dec 12, 2024
1 parent f7c5048 commit 611da3f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ImmichFrame.WebApi/Controllers/AssetController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ public async Task<ImageResponse> GetRandomImageAndInfo(string clientIdentifier =
.Replace("City", randomImage.ExifInfo.City ?? string.Empty)
.Replace("State", randomImage.ExifInfo.State ?? string.Empty)
.Replace("Country", randomImage.ExifInfo.Country ?? string.Empty);
imageLocation = string.Join(",", imageLocation.Split(',').Where(s => !string.IsNullOrWhiteSpace(s)));

return new ImageResponse
{
Expand Down

0 comments on commit 611da3f

Please sign in to comment.