. "'; </script>\r\n";
}
} elseif ($mode === 'profile') {
- $items = conversation_add_children($items, false, $order, $uid);
+ $items = conversation_add_children($items, false, $order, local_user());
if (!$update) {
$tab = 'posts';
$formSecurityToken = BaseModule::getFormSecurityToken('contact_action');
if (!empty($items)) {
- if (in_array($mode, ['community', 'contacts'])) {
+ if (in_array($mode, ['community', 'contacts', 'profile'])) {
$writable = true;
} else {
$writable = ($items[0]['uid'] == 0) && in_array($items[0]['network'], Protocol::FEDERATED);
break;
case 'profile':
$this->profile_owner = $a->getProfileOwner();
- $this->writable = Security::canWriteToUserWall($this->profile_owner);
+ $this->writable = Security::canWriteToUserWall($this->profile_owner) || $writable;
break;
case 'display':
$this->profile_owner = $a->getProfileOwner();