diff --git a/plugins/ProfileColor/ProfileColor.php b/plugins/ProfileColor/ProfileColor.php index a25b71a6e3..93b17f6561 100644 --- a/plugins/ProfileColor/ProfileColor.php +++ b/plugins/ProfileColor/ProfileColor.php @@ -85,9 +85,9 @@ class ProfileColor extends Plugin * @param $res * @return bool */ - public function onAppendCardProfile(&$res): bool + public function onAppendCardProfile($vars, &$res): bool { - $actor = Common::actor(); + $actor = $vars['actor']; if ($actor !== null) { $actor_id = $actor->getId(); diff --git a/templates/cards/profile/view.html.twig b/templates/cards/profile/view.html.twig index b7ce61ab3f..ad207ac3e4 100644 --- a/templates/cards/profile/view.html.twig +++ b/templates/cards/profile/view.html.twig @@ -35,7 +35,7 @@ {% endif %} - {% for block in handle_event('AppendCardProfile') %} + {% for block in handle_event('AppendCardProfile', {'actor': actor}) %} {{ block | raw }} {% endfor %}