Stopped notifications from being sent if the source doesn't download (#218)

This commit is contained in:
Kieran
2024-05-01 08:56:15 -07:00
committed by GitHub
parent 3f74f199dc
commit 8051107d32
2 changed files with 16 additions and 1 deletions
@@ -53,7 +53,11 @@ defmodule Pinchflat.Notifications.SourceNotifications do
end
defp relevant_media_item_count(source) do
pending_media_item_count(source) + downloaded_media_item_count(source)
if source.download_media do
pending_media_item_count(source) + downloaded_media_item_count(source)
else
0
end
end
defp pending_media_item_count(source) do