[smuxi: 166/179] Common: fix EmojiOne URLs



commit 2646bc968b8030d58973362c5ebe14969cda05c6
Author: Mirco Bauer <meebey meebey net>
Date:   Tue Aug 22 19:15:02 2017 -0700

    Common: fix EmojiOne URLs
    
    The new web location (cdnjs.cloudflare.com) expects the filename to be
    lower-cased, otherwise it results in HTTP 404.

 src/Common/Emojione.cs |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/Common/Emojione.cs b/src/Common/Emojione.cs
index 3d7d2d2..fa5f273 100644
--- a/src/Common/Emojione.cs
+++ b/src/Common/Emojione.cs
@@ -41,6 +41,8 @@ namespace Smuxi.Common
 
         public static string  UnicodeToUrl(string unicode)
         {
+            // the filename has to be lower case, otherwise it will HTTP 404
+            unicode = unicode.ToLowerInvariant();
             return String.Format("{0}{1}.png", BaseUri, unicode);
         }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]