fail early
This commit is contained in:
parent
255ace3ae6
commit
5f1abd2461
1 changed files with 17 additions and 15 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue