Cleanup channel helpers code

This commit is contained in:
matthewmcgarvey
2022-01-21 21:27:50 -06:00
parent 508f137b30
commit a82d21ff78
7 changed files with 20 additions and 31 deletions

View File

@@ -51,7 +51,7 @@ module Invidious::Routes::Subscriptions
case action
when "action_create_subscription_to_channel"
if !user.subscriptions.includes? channel_id
get_channel(channel_id, false, false)
get_channel(channel_id)
Invidious::Database::Users.subscribe_channel(user, channel_id)
end
when "action_remove_subscriptions"