mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-12-13 22:00:29 +05:30
Fix CommentorURL NPE and wrong substring.
This commit is contained in:
parent
0c4856933b
commit
a0c5898f4d
@ -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 New Issue
Block a user