Skip to content
Closed
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions ImmichFrame.Core/Api/ImmichApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,16 @@ public async Task<FileResponse> PlayAssetVideoWithRangeAsync(Guid id, string ran
response.Dispose();
throw new ApiException($"Unexpected status code ({status}).", status, error, headers, null);
}
partial void PrepareRequest(System.Net.Http.HttpClient client, System.Net.Http.HttpRequestMessage request, System.Text.StringBuilder urlBuilder)
{
var url = urlBuilder.ToString();

// ensure every call to the albums endpoint includes shared content
if (url.Contains("/albums/") && !url.Contains("shared=true"))
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
{
string separator = url.Contains("?") ? "&" : "?";
urlBuilder.Append($"{separator}shared=true");
}
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
}
}
}
Loading