mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +00:00
Update PronounService, fix jsonn_decode null parameter
This commit is contained in:
parent
61d26e85cd
commit
d72cd819d2
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ class PronounService {
|
|||
|
||||
return Cache::remember($key, $ttl, function() use($id) {
|
||||
$res = UserPronoun::whereProfileId($id)->first();
|
||||
return $res ? json_decode($res->pronouns, true) : [];
|
||||
return $res && $res->pronouns ? json_decode($res->pronouns, true) : [];
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue