$this->writable = true;
break;
case 'profile':
- $this->profile_owner = $a->profile['uid'];
+ $this->profile_owner = $a->getProfileOwner();
$this->writable = Security::canWriteToUserWall($this->profile_owner);
break;
case 'display':
- $this->profile_owner = $a->profile['uid'];
+ $this->profile_owner = $a->getProfileOwner();
$this->writable = Security::canWriteToUserWall($this->profile_owner) || $writable;
break;
case 'community':