Bugfix: Sometimes it happened that the own contact data was deleted. This was caused by the statusnet connector.

This commit is contained in:
Michael Vogel 2014-10-19 00:05:06 +02:00
parent 76a8623053
commit 39cc0fe4cb
2 changed files with 7 additions and 5 deletions

View file

@ -892,6 +892,9 @@ function twitter_queue_hook(&$a,&$b) {
function twitter_fetch_contact($uid, $contact, $create_user) {
require_once("include/Photo.php");
if ($contact->id_str == "")
return(-1);
$avatar = str_replace("_normal.", ".", $contact->profile_image_url_https);
$info = get_photo_info($avatar);