[COMPONENT][Circle] Ensure strict typing on getter

This commit is contained in:
Diogo Peralta Cordeiro 2022-03-28 20:48:29 +01:00
parent 7027633ed5
commit 7463044971
Signed by: diogo
GPG Key ID: 18D2D35001FBFAB0

View File

@ -33,7 +33,6 @@ use App\Core\Router\Router;
use App\Entity\Actor;
use App\Entity\Feed;
use App\Entity\LocalUser;
use App\Util\Common;
use App\Util\Nickname;
use Component\Circle\Controller as CircleController;
use Component\Circle\Entity\ActorCircle;
@ -102,7 +101,7 @@ class Circle extends Component
'title' => 'Self tags',
'desc' => 'Add or remove tags on yourself',
'id' => 'settings-self-tags',
'controller' => CircleController\SelfTagsSettings::settingsSelfTags($request, Common::actor(), 'settings-self-tags-details'),
'controller' => CircleController\SelfTagsSettings::settingsSelfTags($request, Actor::getById((int) $request->get('id')), 'settings-self-tags-details'),
];
}
return Event::next;