4
0
Bifurcation 1

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

Cette révision appartient à :
Eliseu Amaro 2021-09-25 14:20:47 +01:00 révisé par Diogo Peralta Cordeiro
Parent 7b8eb3fda9
révision 4a17adc182
Signé par: diogo
ID de la clé GPG: 18D2D35001FBFAB0
2 fichiers modifiés avec 3 ajouts et 3 suppressions

Voir le fichier

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

Voir le fichier

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