mirror of
				https://github.com/KokaKiwi/BarInsta
				synced 2025-11-04 13:35:36 +00:00 
			
		
		
		
	Remove pk from Caption constructor, to resolve deserialization exception when pk sent by api is a string
This commit is contained in:
		
							parent
							
								
									027d2c634a
								
							
						
					
					
						commit
						0986f2fb71
					
				@ -2,4 +2,6 @@ package awais.instagrabber.repositories.responses
 | 
			
		||||
 | 
			
		||||
import java.io.Serializable
 | 
			
		||||
 | 
			
		||||
data class Caption(var pk: Long = 0, val userId: Long, var text: String) : Serializable
 | 
			
		||||
data class Caption(val userId: Long, var text: String?) : Serializable {
 | 
			
		||||
    var pk: Long = 0
 | 
			
		||||
}
 | 
			
		||||
@ -781,7 +781,6 @@ public final class ResponseBodyUtils {
 | 
			
		||||
            );
 | 
			
		||||
        }
 | 
			
		||||
        final Caption caption = new Caption(
 | 
			
		||||
                0,
 | 
			
		||||
                userId,
 | 
			
		||||
                captionText != null ? captionText : ""
 | 
			
		||||
        );
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user