浏览代码

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

remotes/upstream/experimental
父节点
当前提交
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>


正在加载...
取消
保存