|
|
@ -362,7 +362,7 @@ module Invidious::Routes::Feeds
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
if ucid = HTTP::Params.parse(URI.parse(topic).query.not_nil!)["channel_id"]?
|
|
|
|
if ucid = HTTP::Params.parse(URI.parse(topic).query.not_nil!)["channel_id"]?
|
|
|
|
PG_DB.exec("UPDATE channels SET subscribed = $1 WHERE id = $2", Time.utc, ucid)
|
|
|
|
Invidious::Database::Channels.update_subscription_time(ucid)
|
|
|
|
elsif plid = HTTP::Params.parse(URI.parse(topic).query.not_nil!)["playlist_id"]?
|
|
|
|
elsif plid = HTTP::Params.parse(URI.parse(topic).query.not_nil!)["playlist_id"]?
|
|
|
|
Invidious::Database::Playlists.update_subscription_time(plid)
|
|
|
|
Invidious::Database::Playlists.update_subscription_time(plid)
|
|
|
|
else
|
|
|
|
else
|
|
|
|