<?php
-
/**
* @file src/Object/Post.php
*/
-
namespace Friendica\Object;
use Friendica\BaseObject;
+use Friendica\Content\ContactSelector;
use Friendica\Content\Feature;
use Friendica\Core\PConfig;
use Friendica\Database\DBM;
'thread_level' => $thread_level,
'edited' => $edited,
'network' => $item["item_network"],
- 'network_name' => network_to_name($item['item_network'], $profile_link),
+ 'network_name' => ContactSelector::networkToName($item['item_network'], $profile_link),
'received' => $item['received'],
'commented' => $item['commented'],
'created_date' => $item['created'],
$uid = $conv->getProfileOwner();
$parent_uid = $this->getDataValue('uid');
- if (!empty($parent_uid) && empty($uid) && ($uid != $parent_uid)) {
+ if (!is_null($parent_uid) && ($uid != $parent_uid)) {
$uid = $parent_uid;
}