mirror of
https://github.com/iv-org/invidious.git
synced 2025-08-14 00:28:31 +00:00
Remove cherry-pick leftovers in about.cr
This commit is contained in:
parent
5bcb689804
commit
a04b509a62
@ -10,7 +10,6 @@ struct AboutChannel
|
|||||||
property banner : String?
|
property banner : String?
|
||||||
property description_html : String
|
property description_html : String
|
||||||
property paid : Bool
|
property paid : Bool
|
||||||
property country : String
|
|
||||||
property total_views : Int64
|
property total_views : Int64
|
||||||
property sub_count : Int32
|
property sub_count : Int32
|
||||||
property joined : Time
|
property joined : Time
|
||||||
@ -18,7 +17,6 @@ struct AboutChannel
|
|||||||
property allowed_regions : Array(String)
|
property allowed_regions : Array(String)
|
||||||
property related_channels : Array(AboutRelatedChannel)
|
property related_channels : Array(AboutRelatedChannel)
|
||||||
property tabs : Array(String)
|
property tabs : Array(String)
|
||||||
property links : Array(Tuple(String, String, String))
|
|
||||||
end
|
end
|
||||||
|
|
||||||
struct AboutRelatedChannel
|
struct AboutRelatedChannel
|
||||||
@ -138,10 +136,8 @@ def get_about_info(ucid, locale)
|
|||||||
related_channels ||= [] of AboutRelatedChannel
|
related_channels ||= [] of AboutRelatedChannel
|
||||||
end
|
end
|
||||||
|
|
||||||
country = ""
|
|
||||||
total_views = 0_i64
|
total_views = 0_i64
|
||||||
joined = Time.unix(0)
|
joined = Time.unix(0)
|
||||||
links = [] of {String, String, String}
|
|
||||||
|
|
||||||
tabs = [] of String
|
tabs = [] of String
|
||||||
|
|
||||||
@ -185,7 +181,6 @@ def get_about_info(ucid, locale)
|
|||||||
banner: banner,
|
banner: banner,
|
||||||
description_html: description_html,
|
description_html: description_html,
|
||||||
paid: paid,
|
paid: paid,
|
||||||
country: country,
|
|
||||||
total_views: total_views,
|
total_views: total_views,
|
||||||
sub_count: sub_count,
|
sub_count: sub_count,
|
||||||
joined: joined,
|
joined: joined,
|
||||||
@ -193,6 +188,5 @@ def get_about_info(ucid, locale)
|
|||||||
allowed_regions: allowed_regions,
|
allowed_regions: allowed_regions,
|
||||||
related_channels: related_channels,
|
related_channels: related_channels,
|
||||||
tabs: tabs,
|
tabs: tabs,
|
||||||
links: links,
|
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user