Преглед на файлове

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

remotes/upstream/experimental
Eliseu Amaro преди 1 година
родител
ревизия
4a17adc182
Подписан от: diogo <mail@diogo.site> GPG ключ ID: 18D2D35001FBFAB0
променени са 2 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. +2
    -2
      plugins/ProfileColor/ProfileColor.php
  2. +1
    -1
      templates/cards/profile/view.html.twig

+ 2
- 2
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();



+ 1
- 1
templates/cards/profile/view.html.twig Целия файл

@@ -35,7 +35,7 @@
{% endif %}
</nav>

{% for block in handle_event('AppendCardProfile') %}
{% for block in handle_event('AppendCardProfile', {'actor': actor}) %}
{{ block | raw }}
{% endfor %}
</section>


Зареждане…
Отказ
Запис