mirror of https://gitlab.com/bashrc2/epicyon
				
				
				
			List
							parent
							
								
									997aa948d8
								
							
						
					
					
						commit
						a9813f56c6
					
				
							
								
								
									
										2
									
								
								media.py
								
								
								
								
							
							
						
						
									
										2
									
								
								media.py
								
								
								
								
							| 
						 | 
				
			
			@ -163,7 +163,7 @@ def attachMedia(baseDir: str,httpPrefix: str,domain: str,port: int, \
 | 
			
		|||
        'url': httpPrefix+'://'+domain+'/'+mediaPath
 | 
			
		||||
    }
 | 
			
		||||
    if mediaType.startswith('image/'):
 | 
			
		||||
        attachmentJson['focialPoint']={0.0, 0.0}
 | 
			
		||||
        attachmentJson['focialPoint']=[0.0, 0.0]
 | 
			
		||||
        if useBlurhash:
 | 
			
		||||
            attachmentJson['blurhash']=getImageHash(imageFilename)
 | 
			
		||||
    postJson['attachment']=[attachmentJson]
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue