diff --git a/src/Model/Profile.php b/src/Model/Profile.php index 5ace7ed2c5..6275fcd994 100644 --- a/src/Model/Profile.php +++ b/src/Model/Profile.php @@ -7,7 +7,6 @@ namespace Friendica\Model; -use Friendica\App; use Friendica\App\Mode; use Friendica\AppHelper; use Friendica\Content\Text\BBCode; @@ -191,7 +190,6 @@ class Profile * the theme is chosen before the _init() function of a theme is run, which will usually * load a lot of theme-specific content * - * @param App $a * @param string $nickname string * @param bool $show_contacts * @@ -688,15 +686,13 @@ class Profile * settings take precedence; unless a local user is logged in which means they don't * want to see anybody else's theme settings except their own while on this site. * - * @param App $a - * * @return int user ID * * @note Returns local_user instead of user ID if "always_my_theme" is set to true */ - public static function getThemeUid(App $a): int + public static function getThemeUid(AppHelper $appHelper): int { - return DI::userSession()->getLocalUserId() ?: $a->getProfileOwner(); + return DI::userSession()->getLocalUserId() ?: $appHelper->getProfileOwner(); } /** diff --git a/src/Object/Thread.php b/src/Object/Thread.php index a39ea10e02..e0585e3222 100644 --- a/src/Object/Thread.php +++ b/src/Object/Thread.php @@ -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: