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