]> git.mxchange.org Git - friendica.git/blobdiff - mod/ping.php
Merge branch 'rewrites/is_filled_array_introduced' of git://github.com/Quix0r/friendi...
[friendica.git] / mod / ping.php
index 9338b8b686af87b99bd230b8158b05f6338d9813..40cfe31fa5e1ae3e61b9523e481dda9885805b06 100644 (file)
@@ -189,7 +189,12 @@ function ping_init(&$a) {
                 *              'message' => notification message. "{0}" will be replaced by subject name
                 **/
                function xmlize($n){
-                       $n['photo'] = proxy_url($n['photo'], false, PROXY_SIZE_MICRO);
+
+                       $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);
 
                        $n['message'] = html_entity_decode($n['message'], ENT_COMPAT | ENT_HTML401, "UTF-8");
                        $n['name'] = html_entity_decode($n['name'], ENT_COMPAT | ENT_HTML401, "UTF-8");