[PLUGINS][ProfileColor] Actors are now shown with their own colors for other.
This commit is contained in:
parent
7b8eb3fda9
commit
4a17adc182
@ -85,9 +85,9 @@ class ProfileColor extends Plugin
|
|||||||
* @param $res
|
* @param $res
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function onAppendCardProfile(&$res): bool
|
public function onAppendCardProfile($vars, &$res): bool
|
||||||
{
|
{
|
||||||
$actor = Common::actor();
|
$actor = $vars['actor'];
|
||||||
if ($actor !== null) {
|
if ($actor !== null) {
|
||||||
$actor_id = $actor->getId();
|
$actor_id = $actor->getId();
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
{% for block in handle_event('AppendCardProfile') %}
|
{% for block in handle_event('AppendCardProfile', {'actor': actor}) %}
|
||||||
{{ block | raw }}
|
{{ block | raw }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</section>
|
</section>
|
||||||
|
Loading…
Reference in New Issue
Block a user