mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
Fix CommentorURL NPE and wrong substring.
This commit is contained in:
parent
0c4856933b
commit
a0c5898f4d
1 changed files with 3 additions and 3 deletions
|
@ -487,7 +487,7 @@ public class ResponseHelper {
|
|||
info.getRelatedItems().forEach(comment -> {
|
||||
comments.add(new Comment(comment.getUploaderName(), rewriteURL(comment.getUploaderAvatarUrl()),
|
||||
comment.getCommentId(), comment.getCommentText(), comment.getTextualUploadDate(),
|
||||
optionalSubstring(comment.getUploaderUrl(), 19), comment.getLikeCount(),
|
||||
optionalSubstring(comment.getUploaderUrl(), 23), comment.getLikeCount(),
|
||||
comment.isHeartedByUploader(), comment.isPinned(), comment.isUploaderVerified()));
|
||||
});
|
||||
|
||||
|
@ -516,8 +516,8 @@ 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(19), comment.getLikeCount(), comment.isHeartedByUploader(),
|
||||
comment.isPinned(), comment.isUploaderVerified()));
|
||||
optionalSubstring(comment.getUploaderUrl(), 23), comment.getLikeCount(),
|
||||
comment.isHeartedByUploader(), comment.isPinned(), comment.isUploaderVerified()));
|
||||
});
|
||||
|
||||
String nextpage = null;
|
||||
|
|
Loading…
Reference in a new issue