Add format=json for reddit comments

This commit is contained in:
Omar Roth 2018-09-06 10:19:28 -05:00
parent 3ec684ae71
commit 454b1662b7
2 changed files with 11 additions and 3 deletions

View file

@ -191,7 +191,7 @@ function get_youtube_replies(target) {
}
function get_reddit_comments() {
var url = "/api/v1/comments/<%= video.id %>?source=reddit";
var url = "/api/v1/comments/<%= video.id %>?source=reddit&format=html";
var xhr = new XMLHttpRequest();
xhr.responseType = "json";
xhr.timeout = 20000;