use Friendica\Model\User;
use Friendica\Network\HTTPException;
use Friendica\Protocol\Activity;
use Friendica\Model\User;
use Friendica\Network\HTTPException;
use Friendica\Protocol\Activity;
* @return bool|null true if successful, false if not, null if no remote action was performed
* @throws HTTPException\InternalServerErrorException
* @throws \ImagickException
*/
* @return bool|null true if successful, false if not, null if no remote action was performed
* @throws HTTPException\InternalServerErrorException
* @throws \ImagickException
*/
{
if (empty($contact['network'])) {
throw new \InvalidArgumentException('Missing network key in contact array');
{
if (empty($contact['network'])) {
throw new \InvalidArgumentException('Missing network key in contact array');
* @return bool|null true if successful, false if not, null if no action was performed
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
* @throws \ImagickException
*/
* @return bool|null true if successful, false if not, null if no action was performed
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
* @throws \ImagickException
*/
{
if (empty($contact['network'])) {
throw new \InvalidArgumentException('Missing network key in contact array');
{
if (empty($contact['network'])) {
throw new \InvalidArgumentException('Missing network key in contact array');
- return ActivityPub\Transmitter::sendContactReject($contact['url'], $contact['hub-verify'], $contact['uid']);
+ return ActivityPub\Transmitter::sendContactReject($contact['url'], $contact['hub-verify'], $uid);