mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
fix comment replies
This commit is contained in:
parent
3286328de4
commit
89fd35e02d
4 changed files with 22 additions and 10 deletions
|
@ -2054,6 +2054,9 @@ get "/api/v1/comments/:id" do |env|
|
|||
format = env.params.query["format"]?
|
||||
format ||= "json"
|
||||
|
||||
action = env.params.query["action"]?
|
||||
action ||= "action_get_comments"
|
||||
|
||||
continuation = env.params.query["continuation"]?
|
||||
sort_by = env.params.query["sort_by"]?.try &.downcase
|
||||
|
||||
|
@ -2061,7 +2064,7 @@ get "/api/v1/comments/:id" do |env|
|
|||
sort_by ||= "top"
|
||||
|
||||
begin
|
||||
comments = fetch_youtube_comments(id, PG_DB, continuation, format, locale, thin_mode, region, sort_by: sort_by)
|
||||
comments = fetch_youtube_comments(id, PG_DB, continuation, format, locale, thin_mode, region, sort_by: sort_by, action: action)
|
||||
rescue ex
|
||||
next error_json(500, ex)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue