diff --git a/mod/notifications.php b/mod/notifications.php index 831beee76..bcda5ba34 100644 --- a/mod/notifications.php +++ b/mod/notifications.php @@ -1,5 +1,7 @@ user['nickname'] . '@' . $a->get_hostname() . (($a->path) ? '/' . $a->path : '')); @@ -206,7 +210,20 @@ function notifications_content(&$a) { )); } + $header = $rr["name"]; + + $ret = probe_url($rr["url"]); + + if ($rr['gnetwork'] == "") + $rr['gnetwork'] = $ret["network"]; + + if ($ret["addr"] != "") + $header .= " <".$ret["addr"].">"; + + $header .= " (".network_to_name($rr['gnetwork']).")"; + $notif_content .= replace_macros($tpl, array( + '$header' => htmlentities($header), '$str_notifytype' => t('Notification type: '), '$notify_type' => (($rr['network'] !== NETWORK_OSTATUS) ? t('Friend/Connect Request') : t('New Follower')), '$dfrn_text' => $dfrn_text, diff --git a/view/templates/intros.tpl b/view/templates/intros.tpl index d50b14cd4..8e5a24a6b 100644 --- a/view/templates/intros.tpl +++ b/view/templates/intros.tpl @@ -1,9 +1,8 @@ - +
{{$str_notifytype}} {{$notify_type}}
-