mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2026-06-30 06:50:24 +00:00
🐛 Guard election admin fetchProfile against null profile
This commit is contained in:
@@ -149,7 +149,7 @@ new class extends Component {
|
||||
$profile = \App\Models\Profile::query()->where('pubkey', $pubkey)->first();
|
||||
}
|
||||
|
||||
return $profile->pubkey;
|
||||
return $profile?->pubkey ?? $pubkey;
|
||||
}
|
||||
|
||||
public function loadNostrEvents($kinds): array
|
||||
|
||||
Reference in New Issue
Block a user