]> git.mxchange.org Git - friendica.git/commitdiff
Fix Model\Contact\Introduction::confirm()
authorPhilipp <admin@philipp.info>
Thu, 21 Oct 2021 19:53:58 +0000 (21:53 +0200)
committerPhilipp <admin@philipp.info>
Thu, 21 Oct 2021 19:57:25 +0000 (21:57 +0200)
src/Model/Contact/Introduction.php

index f27a4a6ba84b95d72beb573c31906a41f24933f4..b85e90eaed3c2ffe62855157e4adfba03486367f 100644 (file)
@@ -37,14 +37,14 @@ class Introduction
         * Confirms a follow request and sends a notice to the remote contact.
         *
         * @param Entity\Introduction $introduction
-        * @param bool                $duplex
-        * @param bool                $hidden
+        * @param bool                $duplex       Is it a follow back?
+        * @param bool|null           $hidden       Should this contact be hidden? null = no change
         *
         * @throws HTTPException\InternalServerErrorException
         * @throws HTTPException\NotFoundException
         * @throws \ImagickException
         */
-       public static function confirm(Entity\Introduction $introduction, bool $duplex = false, bool $hidden = false): void
+       public static function confirm(Entity\Introduction $introduction, bool $duplex = false, ?bool $hidden = null): void
        {
                DI::logger()->info('Confirming follower', ['cid' => $introduction->cid]);