]> git.mxchange.org Git - friendica.git/commitdiff
Fix Undefined index: photo in ActivityPub/Receiver
authorHypolite Petovan <hypolite@mrpetovan.com>
Tue, 16 Oct 2018 22:29:28 +0000 (18:29 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Tue, 16 Oct 2018 22:29:28 +0000 (18:29 -0400)
src/Protocol/ActivityPub/Receiver.php

index 04da5fa596ea0858a6468a154eac71fba2b33833..a5ba0763db56a05bd83dd9abdce5b3e5c45921e1 100644 (file)
@@ -461,7 +461,7 @@ class Receiver
 
                logger('Switch contact ' . $cid . ' (' . $profile['url'] . ') for user ' . $uid . ' to ActivityPub');
 
-               $photo = $profile['photo'];
+               $photo = defaults($profile, 'photo', null);
                unset($profile['photo']);
                unset($profile['baseurl']);
 
@@ -478,7 +478,7 @@ class Receiver
        }
 
        /**
-        * 
+        *
         *
         * @param $receivers
         * @param $actor
@@ -503,12 +503,12 @@ class Receiver
        }
 
        /**
-        * 
+        *
         *
         * @param $object_data
         * @param array $activity
         *
-        * @return 
+        * @return
         */
        private static function addActivityFields($object_data, $activity)
        {