2 namespace Friendica\Module;
4 use Friendica\BaseModule;
5 use Friendica\Core\L10n;
6 use Friendica\Model\Introduction;
9 * Process follow request confirmations
11 class FollowConfirm extends BaseModule
13 public static function post(array $parameters = [])
19 notice(L10n::t('Permission denied.') . EOL);
23 $intro_id = intval($_POST['intro_id'] ?? 0);
24 $duplex = intval($_POST['duplex'] ?? 0);
25 $hidden = intval($_POST['hidden'] ?? 0);
27 /** @var Introduction $Intro */
28 $Intro = self::getClass(Introduction::class);
29 $Intro->fetch(['id' => $intro_id, 'uid' => local_user()]);
31 $cid = $Intro->{'contact-id'};
33 $Intro->confirm($duplex, $hidden);
35 $a->internalRedirect('contact/' . intval($cid));