]> git.mxchange.org Git - friendica-addons.git/blobdiff - facebook/facebook.php
issue with cyrillic nickname case conversion
[friendica-addons.git] / facebook / facebook.php
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),