Update src/invidious/routes/channels.cr

Co-authored-by: Samantaz Fox <coding@samantaz.fr>
This commit is contained in:
syeopite 2021-09-26 21:55:15 +00:00 committed by syeopite
parent dd8c412abc
commit 1adcac175e
No known key found for this signature in database
GPG Key ID: 6FA616E5A5294A82

View File

@ -57,7 +57,7 @@ module Invidious::Routes::Channels
end
items, continuation = fetch_channel_playlists(channel.ucid, channel.author, continuation, sort_by)
items = items.select(SearchPlaylist).map { |item| item.as(SearchPlaylist) }
items = items.select(SearchPlaylist).map(&.as(SearchPlaylist))
items.each(&.author=(""))
templated "playlists"