From 8651bd44c2d1f4aaf5635aaedf5abcfbb7152b86 Mon Sep 17 00:00:00 2001 From: Eliseu Amaro Date: Sat, 25 Dec 2021 15:30:42 +0000 Subject: [PATCH] [PLUGINS][ProfileColor] Fix callable argument when retrieving cache data --- plugins/ProfileColor/ProfileColor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/ProfileColor/ProfileColor.php b/plugins/ProfileColor/ProfileColor.php index 7ad3296a35..b1b6e0d831 100644 --- a/plugins/ProfileColor/ProfileColor.php +++ b/plugins/ProfileColor/ProfileColor.php @@ -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; }