]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Photo.php
Merge pull request #11647 from Quix0r/fixes/type-error-exception
[friendica.git] / src / Module / Photo.php
index 134cade65021696b3f8cc2461ca48287e5e15c8f..86c737aa4e092208932ee4c8e3fc9717cd98c5f6 100644 (file)
@@ -270,7 +270,7 @@ class Photo extends BaseModule
 
                                return MPhoto::createPhotoForExternalResource($link['url'], (int)local_user(), $link['mimetype']);
                        case "contact":
-                               $fields = ['uid', 'url', 'nurl', 'avatar', 'photo', 'xmpp', 'addr', 'network', 'failed', 'updated'];
+                               $fields = ['uid', 'uri-id', 'url', 'nurl', 'avatar', 'photo', 'xmpp', 'addr', 'network', 'failed', 'updated'];
                                $contact = Contact::getById($id, $fields);
                                if (empty($contact)) {
                                        return false;