X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FObject%2FThread.php;h=84245ab6a7fb283a7ee1fd120a9a8b68ee727cc5;hb=1744f6b2c338d7981ceebba3b98ae61fbffb25a7;hp=dd10a6aece8cf71177bbe43621d41a1851f97adf;hpb=e56a53647bd5469551bf4f9ef2df50a5dd16b943;p=friendica.git diff --git a/src/Object/Thread.php b/src/Object/Thread.php index dd10a6aece..84245ab6a7 100644 --- a/src/Object/Thread.php +++ b/src/Object/Thread.php @@ -1,6 +1,6 @@ profile_owner = local_user(); + $this->profile_owner = DI::userSession()->getLocalUserId(); $this->writable = true; break; case 'profile': @@ -168,7 +168,7 @@ class Thread /* * Only add will be displayed */ - if ($item->getDataValue('network') === Protocol::MAIL && local_user() != $item->getDataValue('uid')) { + if ($item->getDataValue('network') === Protocol::MAIL && DI::userSession()->getLocalUserId() != $item->getDataValue('uid')) { Logger::info('[WARN] Conversation::addThread : Thread is a mail ('. $item->getId() .').'); return false; } @@ -201,7 +201,7 @@ class Thread $result = []; foreach ($this->parents as $item) { - if ($item->getDataValue('network') === Protocol::MAIL && local_user() != $item->getDataValue('uid')) { + if ($item->getDataValue('network') === Protocol::MAIL && DI::userSession()->getLocalUserId() != $item->getDataValue('uid')) { continue; }