Skip to content

Commit

Permalink
Fix null ref when getting Highlights
Browse files Browse the repository at this point in the history
  • Loading branch information
sim0n00ps committed Oct 27, 2024
1 parent ec23262 commit db1fcc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OF DL/Helpers/APIHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ public async Task<Dictionary<long, string>> GetMedia(MediaType mediatype,
{
await m_DBHelper.AddStory(folder, item.id, string.Empty, "0", false, false, DateTime.Now);
}
if (item.media.Count > 0 && !item.media[0].files.full.url.Contains("upload"))
if (item.media.Count > 0 && item.media[0].canView)
{
foreach (HighlightMedia.Medium medium in item.media)
{
Expand Down

0 comments on commit db1fcc0

Please sign in to comment.