mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
Fix for Reddit timezone
This commit is contained in:
parent
95e2d8f1b7
commit
6e092026d2
2 changed files with 8 additions and 8 deletions
|
@ -2055,7 +2055,7 @@ get "/api/v1/comments/:id" do |env|
|
|||
end
|
||||
elsif source == "reddit"
|
||||
client = make_client(REDDIT_URL)
|
||||
headers = HTTP::Headers{"User-Agent" => "web:invidio.us:v0.2.0 (by /u/omarroth)"}
|
||||
headers = HTTP::Headers{"User-Agent" => "web:invidio.us:v0.6.0 (by /u/omarroth)"}
|
||||
begin
|
||||
comments, reddit_thread = get_reddit_comments(id, client, headers)
|
||||
content_html = template_reddit_comments(comments)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue