X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FOStatus%2Fscripts%2Fupdate-profile-data.php;h=772cc073e2f1a9af816aa658c1a9b3cdcd322ebb;hb=035aae2745e25d44ab9fe1b7bdffbcaa505ba970;hp=20f6d57d9001d5ba5f9d879dda93cb8ceb00e033;hpb=b7d07466943a73e1c009467c8daa6e499810080f;p=quix0rs-gnu-social.git diff --git a/plugins/OStatus/scripts/update-profile-data.php b/plugins/OStatus/scripts/update-profile-data.php index 20f6d57d90..772cc073e2 100644 --- a/plugins/OStatus/scripts/update-profile-data.php +++ b/plugins/OStatus/scripts/update-profile-data.php @@ -26,7 +26,8 @@ $helptext = <<isGroup()) { echo "group\n"; } else { $profile = $oprofile->localProfile(); - foreach (array('nickname', 'bio', 'homepage', 'location') as $field) { - print " $field: {$profile->$field}\n"; + try { + foreach (array('nickname', 'fullname', 'bio', 'homepage', 'location') as $field) { + print " $field: {$profile->$field}\n"; + } + } catch (NoProfileException $e) { + print "local profile not found"; } } echo "\n"; } function fixProfile($uri) { - $oprofile = Ostatus_profile::staticGet('uri', $uri); + $oprofile = Ostatus_profile::getKV('uri', $uri); if (!$oprofile) { print "No OStatus remote profile known for URI $uri\n";