Replace calls for App::getProfileOwner() with AppHelper

This commit is contained in:
Art4 2024-11-08 22:45:14 +00:00
parent 6a6a5af3b2
commit 6f14645a5f
2 changed files with 4 additions and 8 deletions

View file

@ -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: