"View" activities are now ignored

This commit is contained in:
Michael 2022-11-17 20:01:32 +00:00
parent 5204d79dee
commit cdbfa34066
3 changed files with 7 additions and 6 deletions

View file

@ -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;