+ $count++;
+ if ($a->is_friendica_app() OR !$regularnotifications)
+ $n['message'] = str_replace("{0}", $n['name'], $n['message']);
+
+ $notifications[$count.":note"] = $n['message'];
+
+ $contact = get_contact_details_by_url($n['url']);
+ if (isset($contact["micro"]))
+ $n['photo'] = proxy_url($contact["micro"], false, PROXY_SIZE_MICRO);
+ else
+ $n['photo'] = proxy_url($n['photo'], false, PROXY_SIZE_MICRO);
+
+ $local_time = datetime_convert('UTC',date_default_timezone_get(),$n['date']);
+
+ call_hooks('ping_xmlize', $n);
+
+ $notifications[$count.":@attributes"] = array("id" => $n["id"],
+ "href" => $n['href'],
+ "name" => $n['name'],
+ "url" => $n['url'],
+ "photo" => $n['photo'],
+ "date" => relative_date($n['date']),
+ "seen" => $n['seen'],
+ "timestamp" => strtotime($local_time));
+