}
if (DBM::is_result($contact)) {
+ if ($contact['self']) {
+ if (($a->argc == 3) && intval($a->argv[1]) && ($a->argv[2] == "posts")) {
+ goaway('profile/' . $contact['nick']);
+ } else {
+ goaway('profile/' . $contact['nick'] . '?tab=profile');
+ }
+ }
+
$a->data['contact'] = $contact;
if (($a->data['contact']['network'] != "") && ($a->data['contact']['network'] != NETWORK_DFRN)) {
$sparkle = '';
}
+ if ($rr['self']) {
+ $dir_icon = 'images/larrow.gif';
+ $alt_text = L10n::t('This is you');
+ $url = $rr['url'];
+ $sparkle = '';
+ }
+
return [
'img_hover' => L10n::t('Visit %s\'s profile [%s]', $rr['name'], $rr['url']),
'edit_hover' => L10n::t('Edit contact'),