]> git.mxchange.org Git - friendica.git/blobdiff - src/Object/Thread.php
Stopped using deprecated constants NETWORK_* (#5537)
[friendica.git] / src / Object / Thread.php
index 799029a28117ec8844481b76aa0c6651957e540a..e396d6cbc77f661a162626b1f1aa1391af219559 100644 (file)
@@ -5,6 +5,7 @@
 namespace Friendica\Object;
 
 use Friendica\BaseObject;
+use Friendica\Core\Protocol;
 use Friendica\Object\Post;
 
 require_once 'boot.php';
@@ -143,7 +144,7 @@ class Thread extends BaseObject
                /*
                 * Only add will be displayed
                 */
-               if ($item->getDataValue('network') === NETWORK_MAIL && local_user() != $item->getDataValue('uid')) {
+               if ($item->getDataValue('network') === Protocol::MAIL && local_user() != $item->getDataValue('uid')) {
                        logger('[WARN] Conversation::addThread : Thread is a mail ('. $item->getId() .').', LOGGER_DEBUG);
                        return false;
                }
@@ -176,7 +177,7 @@ class Thread extends BaseObject
                $i = 0;
 
                foreach ($this->parents as $item) {
-                       if ($item->getDataValue('network') === NETWORK_MAIL && local_user() != $item->getDataValue('uid')) {
+                       if ($item->getDataValue('network') === Protocol::MAIL && local_user() != $item->getDataValue('uid')) {
                                continue;
                        }