Merge pull request 'Bluesky: Fixes "bluesky_get_did(): Argument #1 ($handle) must be of type string, null given"' (#1501) from heluecht/friendica-addons:bluesky-error into develop

Reviewed-on: https://git.friendi.ca/friendica/friendica-addons/pulls/1501
Reviewed-by: Hypolite Petovan <hypolite@mrpetovan.com>
pull/1500/head
Hypolite Petovan 2024-05-03 17:00:21 +02:00
commit a4598a2427
1 changed files with 4 additions and 0 deletions

View File

@ -97,6 +97,10 @@ function bluesky_load_config(ConfigFileManager $loader)
function bluesky_check_item_notification(array &$notification_data) function bluesky_check_item_notification(array &$notification_data)
{ {
if (empty($notification_data['uid'])) {
return;
}
$did = bluesky_get_user_did($notification_data['uid']); $did = bluesky_get_user_did($notification_data['uid']);
if (!empty($did)) { if (!empty($did)) {