]> git.mxchange.org Git - friendica-addons.git/commitdiff
issue with cyrillic nickname case conversion
authorfriendica <info@friendica.com>
Wed, 27 Jun 2012 06:38:34 +0000 (23:38 -0700)
committerfriendica <info@friendica.com>
Wed, 27 Jun 2012 06:38:34 +0000 (23:38 -0700)
facebook.tgz
facebook/facebook.php

index 233e4eae74369688b78124fda720b0d760308429..1fde92b2f9aca08ae05adbd44ec9e3a696b22fd8 100644 (file)
Binary files a/facebook.tgz and b/facebook.tgz differ
index 11c87a32330d36a34a91a767aeb1a2d441463866..5b1badfcbb5a51b57ea2072742eeab1edb060cc5 100644 (file)
@@ -316,7 +316,7 @@ function fb_get_friends_sync_parsecontact($uid, $contact) {
             dbesc($contact->id),
             dbesc('facebook ' . $contact->id),
             dbesc($contact->name),
-            dbesc(($contact->nickname) ? $contact->nickname : strtolower($contact->first_name)),
+            dbesc(($contact->nickname) ? $contact->nickname : mb_convert_case($contact->first_name, MB_CASE_LOWER, "UTF-8"),
             dbesc('https://graph.facebook.com/' . $contact->id . '/picture'),
             dbesc(NETWORK_FACEBOOK),
             intval(CONTACT_IS_FRIEND),