mirror of
				https://gitlab.com/comunic/comunicapiv2
				synced 2025-11-03 19:14:03 +00:00 
			
		
		
		
	Can get account image settings
This commit is contained in:
		@@ -33,6 +33,14 @@ export class AccountImage {
 | 
			
		||||
		return AccountImage.urlForFile(this.path);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
	 * Check out whether the user has an account image
 | 
			
		||||
	 * or if it is the default account image
 | 
			
		||||
	 */
 | 
			
		||||
	get hasImage() : boolean {
 | 
			
		||||
		return this.path.length > 0;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	static get errorURL() : string {
 | 
			
		||||
		return this.urlForFile(errorAccountImage);
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user