if($slap && count($url_recipients) && ($public_message || $push_notify) && $normal_mode) {
if(!get_config('system','dfrn_only')) {
foreach($url_recipients as $url) {
- if($url) {
+ if ($url) {
logger('notifier: urldelivery: ' . $url);
$deliver_status = slapper($owner,$url,$slap);
/// @TODO Redeliver/queue these items on failure, though there is no contact record
if(isset($entry->urls)) {
foreach($entry->urls as $url) {
- if($url->type == 'profile') {
+ if ($url->type == 'profile') {
$profile_url = $url->value;
continue;
}
- if($url->type == 'webfinger') {
+ if ($url->type == 'webfinger') {
$connect_url = str_replace('acct:' , '', $url->value);
continue;
}
}
}
- if(isset($entry->photos)) {
+ if (isset($entry->photos)) {
foreach($entry->photos as $photo) {
- if($photo->type == 'profile') {
+ if ($photo->type == 'profile') {
$profile_photo = $photo->value;
continue;
}
$username = "";
if (isset($entry->urls)) {
foreach($entry->urls as $url)
- if($url->type == 'profile') {
+ if ($url->type == 'profile') {
$profile_url = $url->value;
$urlparts = parse_url($profile_url);
$username = end(explode("/", $urlparts["path"]));
if(isset($entry->urls)) {
foreach($entry->urls as $url) {
- if($url->type == 'profile') {
+ if ($url->type == 'profile') {
$profile_url = $url->value;
continue;
}
- if($url->type == 'webfinger') {
+ if ($url->type == 'webfinger') {
$connect_url = str_replace('acct:' , '', $url->value);
continue;
}
info( t('Shift-reload the page or clear browser cache if the new photo does not display immediately.') . EOL);
// Update global directory in background
$url = App::get_baseurl() . '/profile/' . $a->user['nickname'];
- if($url && strlen(get_config('system','directory')))
+ if ($url && strlen(get_config('system','directory'))) {
proc_run(PRIORITY_LOW, "include/directory.php", $url);
+ }
require_once('include/profile_update.php');
profile_change();
// Update global directory in background
$url = $_SESSION['my_url'];
- if($url && strlen(get_config('system','directory')))
+ if ($url && strlen(get_config('system','directory'))) {
proc_run(PRIORITY_LOW, "include/directory.php", $url);
+ }
goaway(App::get_baseurl() . '/profiles');
return; // NOTREACHED
// Update global directory in background
$url = $_SESSION['my_url'];
- if($url && strlen(get_config('system','directory')))
+ if ($url && strlen(get_config('system','directory'))) {
proc_run(PRIORITY_LOW, "include/directory.php", $url);
+ }
require_once('include/profile_update.php');
profile_change();
. '&dfrn_version=' . DFRN_PROTOCOL_VERSION . '&type=profile&sec=' . $sec . $dest . $quiet );
}
- if(local_user())
+ if (local_user()) {
$handle = $a->user['nickname'] . '@' . substr($a->get_baseurl(),strpos($a->get_baseurl(),'://')+3);
- if(remote_user())
+ }
+ if (remote_user()) {
$handle = $_SESSION['handle'];
+ }
- if($url) {
+ if ($url) {
$url = str_replace('{zid}','&zid=' . $handle,$url);
goaway($url);
}
);
if (dbm::is_result($r) && $r[0]['net-publish']) {
$url = App::get_baseurl() . '/profile/' . $user[0]['nickname'];
- if($url && strlen(get_config('system','directory')))
+ if ($url && strlen(get_config('system','directory'))) {
proc_run(PRIORITY_LOW, "include/directory.php", $url);
+ }
}
push_lang($register[0]['language']);
if(($old_visibility != $net_publish) || ($page_flags != $old_page_flags)) {
// Update global directory in background
$url = $_SESSION['my_url'];
- if($url && strlen(get_config('system','directory')))
+ if ($url && strlen(get_config('system','directory'))) {
proc_run(PRIORITY_LOW, "include/directory.php", $url);
+ }
}
require_once('include/profile_update.php');