fail early

This commit is contained in:
Matthias Pfefferle 2023-06-21 15:45:03 +02:00
parent 255ace3ae6
commit 5f1abd2461

View file

@ -80,7 +80,10 @@ class Scheduler {
$activity_type = 'Delete';
}
if ( $activity_type ) {
if ( ! $activity_type ) {
return;
}
\wp_schedule_single_event(
\time(),
'activitypub_send_activity',
@ -96,7 +99,6 @@ class Scheduler {
array( $activitypub_post )
);
}
}
/**
* Update followers