[PLUGINS][ProfileColor] Fix callable argument when retrieving cache data
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user