Fix channel URL in comments API.

This commit is contained in:
FireMasterK 2021-05-03 21:06:53 +05:30
parent 98dfda8824
commit a2cd2baf2a
No known key found for this signature in database
GPG key ID: 8DFF5DD33E93DB58

View file

@ -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()));
});