From 7703875b55e3620565f090bf484b948671386e9b Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 23 Feb 2019 16:08:02 +0000 Subject: [PATCH] Fixes "Undefined property: Friendica\App::$queue" --- src/Core/Worker.php | 2 ++ src/Object/Post.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Core/Worker.php b/src/Core/Worker.php index efaa7cd49..0a97c11c1 100644 --- a/src/Core/Worker.php +++ b/src/Core/Worker.php @@ -369,6 +369,8 @@ class Worker // For this reason the variables have to be initialized. $a->getProfiler()->reset(); + $a->queue = $queue; + $up_duration = microtime(true) - self::$up_start; // Reset global data to avoid interferences diff --git a/src/Object/Post.php b/src/Object/Post.php index fbe6970e2..e24607a78 100644 --- a/src/Object/Post.php +++ b/src/Object/Post.php @@ -808,7 +808,7 @@ class Post extends BaseObject foreach ($terms as $term) { $profile = Contact::getDetailsByURL($term['url']); - if (($profile['contact-type'] != Contact::TYPE_COMMUNITY) && + if (!empty($profile['addr']) && !empty($profile['contact-type']) && ($profile['contact-type'] != Contact::TYPE_COMMUNITY) && ($profile['addr'] != $owner['addr']) && !strstr($text, $profile['addr'])) { $text .= '@' . $profile['addr'] . ' '; }