]> git.mxchange.org Git - friendica.git/commitdiff
Fixes "Undefined property: Friendica\App::$queue"
authorMichael <heluecht@pirati.ca>
Sat, 23 Feb 2019 16:08:02 +0000 (16:08 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 23 Feb 2019 16:08:02 +0000 (16:08 +0000)
src/Core/Worker.php
src/Object/Post.php

index efaa7cd493d62d2145a6df7cf154520c542a5b06..0a97c11c13724d25db490fab2b78cbb63a89bab2 100644 (file)
@@ -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
index fbe6970e2913de882a3154b7cb536c50070c85c3..e24607a7878c96d21ea0c24be1654f3837e7eb4f 100644 (file)
@@ -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'] . ' ';
                        }