[PLUGIN][ActivityPub] Log unused core activity to help debug
This commit is contained in:
parent
49a80a3c40
commit
c3477ea56b
|
@ -122,7 +122,8 @@ class Activity extends Model
|
|||
|
||||
private static function handle_core_activity(\App\Entity\Actor $actor, AbstractObject $type_activity, mixed $type_object, ?ActivitypubActivity &$ap_act): ActivitypubActivity
|
||||
{
|
||||
switch ($type_activity->get('type')) {
|
||||
$t = $type_activity->get('type');
|
||||
switch ($t) {
|
||||
case 'Create':
|
||||
ActivityCreate::handle_core_activity($actor, $type_activity, $type_object, $ap_act);
|
||||
break;
|
||||
|
@ -149,6 +150,8 @@ class Activity extends Model
|
|||
case 'Announce':
|
||||
ActivityAnnounce::handle_core_activity($actor, $type_activity, $type_object, $ap_act);
|
||||
break;
|
||||
default:
|
||||
Log::debug('ActivityPub: nothing to handle for type ' . $t);
|
||||
}
|
||||
return $ap_act;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user