]> git.mxchange.org Git - friendica.git/commitdiff
Receiving pokes work now
authorMichael Vogel <icarus@dabo.de>
Sat, 6 Feb 2016 10:16:00 +0000 (11:16 +0100)
committerMichael Vogel <icarus@dabo.de>
Sat, 6 Feb 2016 10:16:00 +0000 (11:16 +0100)
include/dfrn.php

index eaf4341f03760c9a25b76b359be898e786c68db9..90370694ecfdea66e7a05372bcd9e1d78fad0847 100644 (file)
@@ -1703,9 +1703,7 @@ class dfrn {
                if(($xo->type == ACTIVITY_OBJ_PERSON) && ($xo->id)) {
 
                        // somebody was poked/prodded. Was it me?
-                       $links = parse_xml_string("<links>".unxmlify($xo->link)."</links>",false);
-
-                       foreach($links->link as $l) {
+                       foreach($xo->link as $l) {
                                $atts = $l->attributes();
                                switch($atts["rel"]) {
                                        case "alternate":
@@ -1715,6 +1713,7 @@ class dfrn {
                                                break;
                                }
                        }
+
                        if($Blink && link_compare($Blink,App::get_baseurl()."/profile/".$importer["nickname"])) {
 
                                // send a notification