*/
class Thread extends BaseObject
{
- private $parents = array();
+ private $parents = [];
private $mode = null;
private $writable = false;
private $profile_owner = 0;
break;
case 'profile':
$this->profile_owner = $a->profile['profile_uid'];
- $this->writable = can_write_wall($a, $this->profile_owner);
+ $this->writable = can_write_wall($this->profile_owner);
break;
case 'display':
$this->profile_owner = $a->profile['uid'];
- $this->writable = can_write_wall($a, $this->profile_owner) || $writable;
+ $this->writable = can_write_wall($this->profile_owner) || $writable;
break;
case 'community':
- $this->profile_owner = local_user();
+ $this->profile_owner = 0;
$this->writable = $writable;
break;
default:
public function getTemplateData($conv_responses)
{
$a = self::getApp();
- $result = array();
+ $result = [];
$i = 0;
foreach ($this->parents as $item) {