use Friendica\Protocol\Diaspora;
use Friendica\Core\Cache;
use Friendica\Util\Map;
+use Friendica\Util\Network;
require_once 'include/api.php';
$contacts = DBA::select('contact', ['url'], $condition);
while ($contact = DBA::fetch($contacts)) {
+ if (Network::isUrlBlocked($contact['url'])) {
+ continue;
+ }
+
$profile = APContact::getByURL($contact['url'], false);
if (!empty($profile)) {
if (empty($profile['sharedinbox']) || $personal) {
$blindcopy = in_array($element, ['bto', 'bcc']);
foreach ($permissions[$element] as $receiver) {
+ if (Network::isUrlBlocked($receiver)) {
+ continue;
+ }
+
if ($receiver == $item_profile['followers']) {
$inboxes = array_merge($inboxes, self::fetchTargetInboxesforUser($uid, $personal));
} else {
$data['object'] = $item['thr-parent'];
}
- $owner = User::getOwnerDataById($item['uid']);
+ $owner = User::getOwnerDataById($item['contact-uid']);
if (!$object_mode) {
return LDSignature::sign($data, $owner);