3 namespace Friendica\Object\Api\Mastodon;
5 use Friendica\App\BaseURL;
8 * Virtual entity to separate Accounts from Follow Requests.
9 * In the Mastodon API they are one and the same.
11 class FollowRequest extends Account
14 * Creates a follow request entity from an introduction record.
16 * The account ID is set to the Introduction ID to allow for later interaction with follow requests.
18 * @param BaseURL $baseUrl
19 * @param int $introduction_id Introduction record id
20 * @param array $publicContact Full contact table record with uid = 0
21 * @param array $apcontact Optional full apcontact table record
22 * @param array $userContact Optional full contact table record with uid != 0
23 * @throws \Friendica\Network\HTTPException\InternalServerErrorException
25 public function __construct(BaseURL $baseUrl, int $introduction_id, array $publicContact, array $apcontact = [], array $userContact = [])
27 parent::__construct($baseUrl, $publicContact, $apcontact, $userContact);
29 $this->id = $introduction_id;