mirror of
				https://gitlab.com/Kwoth/nadekobot.git
				synced 2025-11-04 00:34:26 -05:00 
			
		
		
		
	images.yml should once again support local file paths
This commit is contained in:
		@@ -59,6 +59,11 @@ public sealed class ImageCache : IImageCache, INService
 | 
			
		||||
            GetImageKey(url),
 | 
			
		||||
            async () =>
 | 
			
		||||
            {
 | 
			
		||||
                if (url.IsFile)
 | 
			
		||||
                {
 | 
			
		||||
                    return await File.ReadAllBytesAsync(url.LocalPath);
 | 
			
		||||
                }
 | 
			
		||||
 | 
			
		||||
                using var http = _httpFactory.CreateClient();
 | 
			
		||||
                var bytes = await http.GetByteArrayAsync(url);
 | 
			
		||||
                return bytes;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user