From: friendica Date: Wed, 27 Jun 2012 06:38:34 +0000 (-0700) Subject: issue with cyrillic nickname case conversion X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=448a8c4fd3e94fd57b7c72e311c8e63879b12d71;p=friendica-addons.git issue with cyrillic nickname case conversion --- diff --git a/facebook.tgz b/facebook.tgz index 233e4eae..1fde92b2 100644 Binary files a/facebook.tgz and b/facebook.tgz differ diff --git a/facebook/facebook.php b/facebook/facebook.php index 11c87a32..5b1badfc 100644 --- a/facebook/facebook.php +++ b/facebook/facebook.php @@ -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),