mirror of
https://github.com/friendica/friendica
synced 2025-04-19 07:10:11 +00:00
Replace calls for App::getProfileOwner() with AppHelper
This commit is contained in:
parent
6a6a5af3b2
commit
6f14645a5f
2 changed files with 4 additions and 8 deletions
|
@ -57,7 +57,7 @@ class Thread
|
|||
return;
|
||||
}
|
||||
|
||||
$a = DI::app();
|
||||
$appHelper = DI::apphelper();
|
||||
|
||||
switch ($mode) {
|
||||
case Conversation::MODE_NETWORK:
|
||||
|
@ -67,7 +67,7 @@ class Thread
|
|||
break;
|
||||
case Conversation::MODE_PROFILE:
|
||||
case Conversation::MODE_DISPLAY:
|
||||
$this->profile_owner = $a->getProfileOwner();
|
||||
$this->profile_owner = $appHelper->getProfileOwner();
|
||||
$this->writable = Security::canWriteToUserWall($this->profile_owner) || $writable;
|
||||
break;
|
||||
case Conversation::MODE_CHANNEL:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue