const PUMPIO = 'pump'; // pump.io
const STATUSNET = 'stac'; // Statusnet connector
const TWITTER = 'twit'; // Twitter
const PUMPIO = 'pump'; // pump.io
const STATUSNET = 'stac'; // Statusnet connector
const TWITTER = 'twit'; // Twitter
const NEWS = 'nntp'; // Network News Transfer Protocol
const PNUT = 'pnut'; // pnut.io
const XMPP = 'xmpp'; // XMPP
const NEWS = 'nntp'; // Network News Transfer Protocol
const PNUT = 'pnut'; // pnut.io
const XMPP = 'xmpp'; // XMPP
* Sends an unfollow message. Does not remove the contact
*
* @param array $contact Target public contact (uid = 0) array
* Sends an unfollow message. Does not remove the contact
*
* @param array $contact Target public contact (uid = 0) array
* @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'])) {
Logger::notice('Contact has got no network, we quit here', ['id' => $contact['id']]);
{
if (empty($contact['network'])) {
Logger::notice('Contact has got no network, we quit here', ['id' => $contact['id']]);
if (empty($contact['notify'])) {
Logger::notice('OStatus/DFRN Contact is missing notify, we quit here', ['id' => $contact['id']]);
return null;
}
if (empty($contact['notify'])) {
Logger::notice('OStatus/DFRN Contact is missing notify, we quit here', ['id' => $contact['id']]);
return null;
}
* Revoke an incoming follow from the provided contact
*
* @param array $contact Target public contact (uid == 0) array
* Revoke an incoming follow from the provided contact
*
* @param array $contact Target public contact (uid == 0) 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'], $uid);
+ return ActivityPub\Transmitter::sendContactReject($contact['url'], $contact['hub-verify'], $owner);