mirror of
https://github.com/friendica/friendica
synced 2025-04-22 01:50:11 +00:00
"View" activities are now ignored
This commit is contained in:
parent
5204d79dee
commit
cdbfa34066
3 changed files with 7 additions and 6 deletions
|
@ -559,6 +559,11 @@ class Receiver
|
|||
return true;
|
||||
}
|
||||
|
||||
if ($type == 'as:View') {
|
||||
Logger::info('View activities are ignored.', ['signer' => $signer, 'http_signer' => $http_signer]);
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!JsonLD::fetchElement($activity, 'as:object', '@id')) {
|
||||
Logger::info('Empty object', ['activity' => $activity]);
|
||||
return true;
|
||||
|
|
|
@ -657,7 +657,7 @@ class Transmitter
|
|||
$is_forum_thread = false;
|
||||
}
|
||||
|
||||
if (self::isAnnounce($item) || DI::config()->get('debug', 'total_ap_delivery') || self::isAPPost($last_id)) {
|
||||
if (self::isAnnounce($item) || self::isAPPost($last_id)) {
|
||||
// Will be activated in a later step
|
||||
$networks = Protocol::FEDERATED;
|
||||
} else {
|
||||
|
@ -902,7 +902,7 @@ class Transmitter
|
|||
}
|
||||
}
|
||||
|
||||
if (DI::config()->get('debug', 'total_ap_delivery') || $all_ap) {
|
||||
if ($all_ap) {
|
||||
// Will be activated in a later step
|
||||
$networks = Protocol::FEDERATED;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue