From: Michael Date: Mon, 30 Nov 2020 18:27:02 +0000 (+0000) Subject: Fix Notice: Undefined variable: publish_at X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5b19469a4c9c654493153f0e438b8ed1efd8abba;p=friendica.git Fix Notice: Undefined variable: publish_at --- diff --git a/src/Protocol/Feed.php b/src/Protocol/Feed.php index 5231107146..9302a05903 100644 --- a/src/Protocol/Feed.php +++ b/src/Protocol/Feed.php @@ -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],