]> git.mxchange.org Git - friendica.git/commitdiff
Fix formatting and PHPDoc in ActivityPub\Processor
authorHypolite Petovan <hypolite@mrpetovan.com>
Thu, 13 Jun 2019 01:01:44 +0000 (21:01 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Thu, 13 Jun 2019 01:01:44 +0000 (21:01 -0400)
Add expected return value to postMail method

src/Protocol/ActivityPub/Processor.php

index 9eb1506a2878deba0a71064205f189732960087d..1ac29d9e9f90f6fd794d994443092cd51b056e6b 100644 (file)
@@ -442,8 +442,8 @@ class Processor
         *
         * @param array $activity Activity data
         * @param array $item     item array
+        * @return int|bool New mail table row id or false on error
         * @throws \Friendica\Network\HTTPException\InternalServerErrorException
-        * @throws \ImagickException
         */
        private static function postMail($activity, $item)
        {
@@ -497,7 +497,7 @@ class Processor
                }
                $msg['body'] = $item['body'];
 
-                Mail::insert($msg);
+               return Mail::insert($msg);
        }
 
        /**