- if ($a->is_friendica_app() OR !$regularnotifications)
- $n['message'] = str_replace("{0}", $n['name'], $n['message']);
-
- $local_time = datetime_convert('UTC',date_default_timezone_get(),$n['date']);
-
- call_hooks('ping_xmlize', $n);
- $notsxml = '<note id="%d" href="%s" name="%s" url="%s" photo="%s" date="%s" seen="%s" timestamp="%s" >%s</note>'."\n";
- return sprintf ( $notsxml, intval($n['id']),
- xmlify($n['href']), xmlify($n['name']), xmlify($n['url']), xmlify($n['photo']),
- xmlify(relative_date($n['date'])), xmlify($n['seen']), xmlify(strtotime($local_time)),
- xmlify($n['message'])
- );
- }
-
- echo "<intro>$intro</intro>
- <mail>$mail</mail>
- <net>$network</net>
- <home>$home</home>\r\n";
- if ($register!=0) echo "<register>$register</register>";
-
- if (count($groups_unseen)) {
- echo '<groups>';