Fix Model\Contact\Introduction::confirm()

This commit is contained in:
Philipp Holzer 2021-10-21 21:53:58 +02:00
parent f5786a8f4f
commit bf7c66b2c7
Signed by: nupplaPhil
GPG Key ID: 24A7501396EB5432
1 changed files with 3 additions and 3 deletions

View File

@ -37,14 +37,14 @@ class Introduction
* Confirms a follow request and sends a notice to the remote contact. * Confirms a follow request and sends a notice to the remote contact.
* *
* @param Entity\Introduction $introduction * @param Entity\Introduction $introduction
* @param bool $duplex * @param bool $duplex Is it a follow back?
* @param bool $hidden * @param bool|null $hidden Should this contact be hidden? null = no change
* *
* @throws HTTPException\InternalServerErrorException * @throws HTTPException\InternalServerErrorException
* @throws HTTPException\NotFoundException * @throws HTTPException\NotFoundException
* @throws \ImagickException * @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]); DI::logger()->info('Confirming follower', ['cid' => $introduction->cid]);