summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2018-07-26 16:30:39 -0500
committerOmar Roth <omarroth@hotmail.com>2018-07-26 16:30:39 -0500
commit8ed9624e0a1d54cd5b88785275543aa706721696 (patch)
tree31f213bec9f94c3bac014cd8bd06586f8c2cdc16 /src
parentf7a5ce265293b0a72600e58c7da1f6775f54066c (diff)
downloadinvidious-8ed9624e0a1d54cd5b88785275543aa706721696.tar.gz
invidious-8ed9624e0a1d54cd5b88785275543aa706721696.tar.bz2
invidious-8ed9624e0a1d54cd5b88785275543aa706721696.zip
Fix bug in delivering user notifications
Diffstat (limited to 'src')
-rw-r--r--src/invidious/helpers.cr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/invidious/helpers.cr b/src/invidious/helpers.cr
index 037a451e..38283b7d 100644
--- a/src/invidious/helpers.cr
+++ b/src/invidious/helpers.cr
@@ -673,7 +673,7 @@ def fetch_channel(ucid, client, db, pull_all_videos = true)
video = ChannelVideo.new(video_id, title, published, Time.now, ucid, author)
db.exec("UPDATE users SET notifications = notifications || $1 \
- WHERE updated < $2 AND $3 = ANY(subscriptions) AND $1 <> ALL(notifications)", video.id, Time.now, ucid)
+ WHERE updated < $2 AND $3 = ANY(subscriptions) AND $1 <> ALL(notifications)", video.id, video.published, ucid)
video_array = video.to_a
args = arg_array(video_array)