Don't try to update channels in subscription manager

pull/363/head
Omar Roth 2019-02-11 10:52:28 -06:00
rodzic 64f13df99b
commit 1590393fcc
1 zmienionych plików z 2 dodań i 4 usunięć

Wyświetl plik

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