diff options
| author | Andrew Zhao <azhao12345@users.noreply.github.com> | 2021-03-18 01:23:32 -0400 |
|---|---|---|
| committer | Andrew Zhao <azhao12345@users.noreply.github.com> | 2021-03-20 00:43:12 -0400 |
| commit | 89fd35e02d0e8de585c3f5d619fb45986ac1173a (patch) | |
| tree | 24b869c1478146efb5c08ed40f34270ac6fcbc89 /src/invidious.cr | |
| parent | 3286328de4cd64b48265b42333bfa67346b7a0b9 (diff) | |
| download | invidious-89fd35e02d0e8de585c3f5d619fb45986ac1173a.tar.gz invidious-89fd35e02d0e8de585c3f5d619fb45986ac1173a.tar.bz2 invidious-89fd35e02d0e8de585c3f5d619fb45986ac1173a.zip | |
fix comment replies
Diffstat (limited to 'src/invidious.cr')
| -rw-r--r-- | src/invidious.cr | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/invidious.cr b/src/invidious.cr index 89d99ecc..8d579f92 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -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 |
