From a2cd2baf2aa361bece822d0b6954774cf3c72ac5 Mon Sep 17 00:00:00 2001 From: FireMasterK <20838718+FireMasterK@users.noreply.github.com> Date: Mon, 3 May 2021 21:06:53 +0530 Subject: [PATCH] Fix channel URL in comments API. --- src/main/java/me/kavin/piped/utils/ResponseHelper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/me/kavin/piped/utils/ResponseHelper.java b/src/main/java/me/kavin/piped/utils/ResponseHelper.java index e73512e..f8eede8 100644 --- a/src/main/java/me/kavin/piped/utils/ResponseHelper.java +++ b/src/main/java/me/kavin/piped/utils/ResponseHelper.java @@ -377,7 +377,7 @@ public class ResponseHelper { info.getRelatedItems().forEach(comment -> { comments.add(new Comment(comment.getUploaderName(), rewriteURL(comment.getUploaderAvatarUrl()), comment.getCommentId(), comment.getCommentText(), comment.getTextualUploadDate(), - comment.getUploaderUrl().substring(23), comment.getLikeCount(), comment.isHeartedByUploader(), + comment.getUploaderUrl().substring(19), comment.getLikeCount(), comment.isHeartedByUploader(), comment.isPinned(), comment.isUploaderVerified())); }); @@ -403,7 +403,7 @@ public class ResponseHelper { info.getItems().forEach(comment -> { comments.add(new Comment(comment.getUploaderName(), rewriteURL(comment.getUploaderAvatarUrl()), comment.getCommentId(), comment.getCommentText(), comment.getTextualUploadDate(), - comment.getUploaderUrl().substring(23), comment.getLikeCount(), comment.isHeartedByUploader(), + comment.getUploaderUrl().substring(19), comment.getLikeCount(), comment.isHeartedByUploader(), comment.isPinned(), comment.isUploaderVerified())); });