2 namespace Friendica\Module;
4 use Friendica\BaseModule;
5 use Friendica\Core\L10n;
6 use Friendica\Model\Introduction;
10 * Process follow request confirmations
12 class FollowConfirm extends BaseModule
14 public static function post(array $parameters = [])
18 notice(L10n::t('Permission denied.') . EOL);
22 $intro_id = intval($_POST['intro_id'] ?? 0);
23 $duplex = intval($_POST['duplex'] ?? 0);
24 $hidden = intval($_POST['hidden'] ?? 0);
26 /** @var Introduction $Intro */
27 $Intro = self::getClass(Introduction::class);
28 $Intro->fetch(['id' => $intro_id, 'uid' => local_user()]);
30 $cid = $Intro->{'contact-id'};
32 $Intro->confirm($duplex, $hidden);
34 DI::baseUrl()->redirect('contact/' . intval($cid));