]> git.mxchange.org Git - friendica.git/blobdiff - src/Protocol/ActivityPub/Processor.php
$id in Transmitter::sendContactAccept() is a string, see Introduction class
[friendica.git] / src / Protocol / ActivityPub / Processor.php
index a044b7368f7ca05cd12ae96a51d8cb412d52875f..d9dd7ee5b321993c99ad2249bb31375f1a8d04f2 100644 (file)
@@ -1267,8 +1267,10 @@ class Processor
                        Contact::update(['hub-verify' => $activity['id'], 'protocol' => Protocol::ACTIVITYPUB], ['id' => $cid]);
                }
 
-               $item = ['author-id' => Contact::getIdForURL($activity['actor']),
-                       'author-link' => $activity['actor']];
+               $item = [
+                       'author-id' => Contact::getIdForURL($activity['actor']),
+                       'author-link' => $activity['actor'],
+               ];
 
                // Ensure that the contact has got the right network type
                self::switchContact($item['author-id']);
@@ -1297,8 +1299,8 @@ class Processor
        /**
         * Transmit pending events to the new follower
         *
-        * @param integer $cid
-        * @param integer $uid
+        * @param integer $cid Contact id
+        * @param integer $uid User id
         * @return void
         */
        private static function transmitPendingEvents(int $cid, int $uid)
@@ -1341,6 +1343,7 @@ class Processor
         * Delete the given profile
         *
         * @param array $activity
+        * @return void
         * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         */
        public static function deletePerson(array $activity)
@@ -1368,6 +1371,7 @@ class Processor
         * Blocks the user by the contact
         *
         * @param array $activity
+        * @return void
         * @throws \Exception
         */
        public static function blockAccount(array $activity)
@@ -1391,6 +1395,7 @@ class Processor
         * Unblocks the user by the contact
         *
         * @param array $activity
+        * @return void
         * @throws \Exception
         */
        public static function unblockAccount(array $activity)