mirror of
				https://github.com/TeamPiped/Piped-Backend.git
				synced 2024-08-14 23:51:41 +00:00 
			
		
		
		
	Merge pull request #386 from TeamPiped/replies-count
Add support for reply count and bump deps
This commit is contained in:
		
						commit
						28d5858ac0
					
				
					 3 changed files with 14 additions and 13 deletions
				
			
		
							
								
								
									
										18
									
								
								build.gradle
									
										
									
									
									
								
							
							
						
						
									
										18
									
								
								build.gradle
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -11,26 +11,26 @@ repositories {
 | 
			
		|||
 | 
			
		||||
dependencies {
 | 
			
		||||
    implementation 'org.apache.commons:commons-lang3:3.12.0'
 | 
			
		||||
    implementation 'org.apache.commons:commons-text:1.9'
 | 
			
		||||
    implementation 'org.apache.commons:commons-text:1.10.0'
 | 
			
		||||
    implementation 'commons-io:commons-io:2.11.0'
 | 
			
		||||
    implementation 'it.unimi.dsi:fastutil-core:8.5.8'
 | 
			
		||||
    implementation 'it.unimi.dsi:fastutil-core:8.5.9'
 | 
			
		||||
    implementation 'commons-codec:commons-codec:1.15'
 | 
			
		||||
    implementation 'org.bouncycastle:bcprov-jdk15on:1.70'
 | 
			
		||||
    implementation 'com.github.FireMasterK.NewPipeExtractor:NewPipeExtractor:d3706d852d6711e2dfccb87b5885638c6981dca8'
 | 
			
		||||
    implementation 'com.github.FireMasterK.NewPipeExtractor:NewPipeExtractor:2e9763d4d2e1e11a885c99291cb3c6cf2a349617'
 | 
			
		||||
    implementation 'com.github.FireMasterK:nanojson:5df3e81e87b791d01f132f376e4b7d4a1780f346'
 | 
			
		||||
    implementation 'com.fasterxml.jackson.core:jackson-core:2.13.4'
 | 
			
		||||
    implementation 'com.fasterxml.jackson.core:jackson-annotations:2.13.4'
 | 
			
		||||
    implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.4'
 | 
			
		||||
    implementation 'org.json:json:20220320'
 | 
			
		||||
    implementation 'org.json:json:20220924'
 | 
			
		||||
    implementation 'com.github.ben-manes.caffeine:caffeine:3.1.1'
 | 
			
		||||
    implementation 'com.rometools:rome:1.18.0'
 | 
			
		||||
    implementation 'com.github.ipfs:java-ipfs-http-client:v1.3.3'
 | 
			
		||||
    implementation 'org.jsoup:jsoup:1.15.3'
 | 
			
		||||
    implementation 'io.activej:activej-common:5.4.2'
 | 
			
		||||
    implementation 'io.activej:activej-http:5.4.2'
 | 
			
		||||
    implementation 'io.activej:activej-boot:5.4.2'
 | 
			
		||||
    implementation 'io.activej:activej-specializer:5.4.2'
 | 
			
		||||
    implementation 'io.activej:activej-launchers-http:5.4.2'
 | 
			
		||||
    implementation 'io.activej:activej-common:5.4.3'
 | 
			
		||||
    implementation 'io.activej:activej-http:5.4.3'
 | 
			
		||||
    implementation 'io.activej:activej-boot:5.4.3'
 | 
			
		||||
    implementation 'io.activej:activej-specializer:5.4.3'
 | 
			
		||||
    implementation 'io.activej:activej-launchers-http:5.4.3'
 | 
			
		||||
    implementation 'org.hsqldb:hsqldb:2.7.0'
 | 
			
		||||
    implementation 'org.postgresql:postgresql:42.5.0'
 | 
			
		||||
    implementation 'org.hibernate:hibernate-core:6.1.0.Final'
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -633,7 +633,7 @@ public class ResponseHelper {
 | 
			
		|||
 | 
			
		||||
                comments.add(new Comment(comment.getUploaderName(), rewriteURL(comment.getUploaderAvatarUrl()),
 | 
			
		||||
                        comment.getCommentId(), comment.getCommentText(), comment.getTextualUploadDate(),
 | 
			
		||||
                        substringYouTube(comment.getUploaderUrl()), repliespage, comment.getLikeCount(),
 | 
			
		||||
                        substringYouTube(comment.getUploaderUrl()), repliespage, comment.getLikeCount(), comment.getReplyCount(),
 | 
			
		||||
                        comment.isHeartedByUploader(), comment.isPinned(), comment.isUploaderVerified()));
 | 
			
		||||
            } catch (JsonProcessingException e) {
 | 
			
		||||
                ExceptionHandler.handle(e);
 | 
			
		||||
| 
						 | 
				
			
			@ -671,7 +671,7 @@ public class ResponseHelper {
 | 
			
		|||
 | 
			
		||||
                comments.add(new Comment(comment.getUploaderName(), rewriteURL(comment.getUploaderAvatarUrl()),
 | 
			
		||||
                        comment.getCommentId(), comment.getCommentText(), comment.getTextualUploadDate(),
 | 
			
		||||
                        substringYouTube(comment.getUploaderUrl()), repliespage, comment.getLikeCount(),
 | 
			
		||||
                        substringYouTube(comment.getUploaderUrl()), repliespage, comment.getLikeCount(), comment.getReplyCount(),
 | 
			
		||||
                        comment.isHeartedByUploader(), comment.isPinned(), comment.isUploaderVerified()));
 | 
			
		||||
            } catch (JsonProcessingException e) {
 | 
			
		||||
                ExceptionHandler.handle(e);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -3,11 +3,11 @@ package me.kavin.piped.utils.obj;
 | 
			
		|||
public class Comment {
 | 
			
		||||
 | 
			
		||||
    public String author, thumbnail, commentId, commentText, commentedTime, commentorUrl, repliesPage;
 | 
			
		||||
    public int likeCount;
 | 
			
		||||
    public int likeCount, replyCount;
 | 
			
		||||
    public boolean hearted, pinned, verified;
 | 
			
		||||
 | 
			
		||||
    public Comment(String author, String thumbnail, String commentId, String commentText, String commentedTime,
 | 
			
		||||
            String commentorUrl, String repliesPage, int likeCount, boolean hearted, boolean pinned, boolean verified) {
 | 
			
		||||
                   String commentorUrl, String repliesPage, int likeCount, int replyCount, boolean hearted, boolean pinned, boolean verified) {
 | 
			
		||||
        this.author = author;
 | 
			
		||||
        this.thumbnail = thumbnail;
 | 
			
		||||
        this.commentId = commentId;
 | 
			
		||||
| 
						 | 
				
			
			@ -16,6 +16,7 @@ public class Comment {
 | 
			
		|||
        this.commentorUrl = commentorUrl;
 | 
			
		||||
        this.repliesPage = repliesPage;
 | 
			
		||||
        this.likeCount = likeCount;
 | 
			
		||||
        this.replyCount = replyCount;
 | 
			
		||||
        this.hearted = hearted;
 | 
			
		||||
        this.pinned = pinned;
 | 
			
		||||
        this.verified = verified;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue