forked from GNUsocial/gnu-social
[PLUGINS][ProfileColor] Fix callable argument when retrieving cache data
This commit is contained in:
parent
6ada5e60d2
commit
8651bd44c2
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user