|
|
@ -1375,10 +1375,8 @@ get "/subscription_manager" do |env|
|
|
|
|
|
|
|
|
|
|
|
|
subscriptions = [] of InvidiousChannel
|
|
|
|
subscriptions = [] of InvidiousChannel
|
|
|
|
user.subscriptions.each do |ucid|
|
|
|
|
user.subscriptions.each do |ucid|
|
|
|
|
begin
|
|
|
|
if channel = PG_DB.query_one?("SELECT * FROM channels WHERE id = $1", ucid, as: InvidiousChannel)
|
|
|
|
subscriptions << get_channel(ucid, PG_DB, false, false)
|
|
|
|
subscriptions << channel
|
|
|
|
rescue ex
|
|
|
|
|
|
|
|
next
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
subscriptions.sort_by! { |channel| channel.author.downcase }
|
|
|
|
subscriptions.sort_by! { |channel| channel.author.downcase }
|
|
|
|