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