X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FOStatus%2Fscripts%2Fupdate-profile-data.php;h=e024ed95a780f3b09b8771f0d7360671b7303320;hb=30a4393afab9c426a95da69ecb7805bc00e24de2;hp=20f6d57d9001d5ba5f9d879dda93cb8ceb00e033;hpb=27ef3b1d905cdf8f47b47293a757624dda88fdc7;p=quix0rs-gnu-social.git diff --git a/plugins/OStatus/scripts/update-profile-data.php b/plugins/OStatus/scripts/update-profile-data.php old mode 100644 new mode 100755 index 20f6d57d90..e024ed95a7 --- 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";