[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 提交者 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>