mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
Fix channel URL in comments API.
This commit is contained in:
parent
98dfda8824
commit
a2cd2baf2a
1 changed files with 2 additions and 2 deletions
|
@ -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()));
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue