Block AP delivery
This commit is contained in:
parent
ba1e385f86
commit
2f7b138b09
1 changed files with 5 additions and 0 deletions
|
@ -27,6 +27,7 @@ use Friendica\Protocol\ActivityPub;
|
|||
use Friendica\Protocol\Diaspora;
|
||||
use Friendica\Core\Cache;
|
||||
use Friendica\Util\Map;
|
||||
use Friendica\Util\Network;
|
||||
|
||||
require_once 'include/api.php';
|
||||
|
||||
|
@ -446,6 +447,10 @@ class Transmitter
|
|||
|
||||
$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) {
|
||||
|
|
Loading…
Reference in a new issue