[PLUGINS][ProfileColor] Actors are now shown with their own colors for other.

This commit is contained in:
Eliseu Amaro 2021-09-25 14:20:47 +01:00 committed by Diogo Peralta Cordeiro
부모 7b8eb3fda9
커밋 4a17adc182
로그인 계정: diogo
GPG 키 ID: 18D2D35001FBFAB0
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제

파일 보기

@ -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();

파일 보기

@ -35,7 +35,7 @@
{% endif %}
</nav>
{% for block in handle_event('AppendCardProfile') %}
{% for block in handle_event('AppendCardProfile', {'actor': actor}) %}
{{ block | raw }}
{% endfor %}
</section>