[PLUGINS][ProfileColor] Fix callable argument when retrieving cache data

This commit is contained in:
Eliseu Amaro 2021-12-25 15:30:42 +00:00
parent 6ada5e60d2
commit 8651bd44c2
Signed by: eliseuamaro
GPG Key ID: 96DA09D4B97BC2D5
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ class ProfileColor extends Plugin
$actor_id = $actor->getId();
try {
$profile_color_tab = Cache::get("profile-color-{$actor_id}", DB::findOneBy('profile_color', ['actor_id' => $actor_id]));
$profile_color_tab = Cache::get("profile-color-{$actor_id}", fn () => DB::findOneBy('profile_color', ['actor_id' => $actor_id]));
} catch (NotFoundException $e) {
return Event::next;
}