namespace Friendica\Object;
use Friendica\BaseObject;
+use Friendica\Core\Protocol;
use Friendica\Object\Post;
require_once 'boot.php';
/*
* 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;
}
$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;
}