Merge pull request #9612 from annando/notice

Fix Notice:  Undefined variable: publish_at
pull/9615/head
Hypolite Petovan 2020-11-30 14:24:23 -05:00 committed by GitHub
commit fe79aaf7f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -633,6 +633,8 @@ class Feed
$publish_at = DateTimeFormat::utc('now + ' . $post_delay . ' second');
Logger::notice('Got publishing date', ['delay' => $delay, 'publish_at' => $publish_at, 'cid' => $contact['id'], 'url' => $contact['url']]);
$post_delay += $delay;
} else {
$publish_at = DBA::NULL_DATETIME;
}
Worker::add(['priority' => PRIORITY_HIGH, 'delayed' => $publish_at],