]> git.mxchange.org Git - friendica.git/commitdiff
items: added some logging infos
authorMichael Vogel <icarus@dabo.de>
Sun, 2 Sep 2012 15:49:06 +0000 (17:49 +0200)
committerMichael Vogel <icarus@dabo.de>
Sun, 2 Sep 2012 15:49:06 +0000 (17:49 +0200)
include/items.php

index 1a664b30109baa792e3cad7723f921223b8852a1..79fab8a65b3b76cc673b39d72d1e8e62f8de38f4 100755 (executable)
@@ -793,6 +793,8 @@ function get_atom_elements($feed,$item) {
        // There is some better way to parse this array - but it didn't worked for me.
        $child = $item->feed->data["child"][SIMPLEPIE_NAMESPACE_ATOM_10]["feed"][0]["child"][SIMPLEPIE_NAMESPACE_ATOM_10]["entry"][0]["child"]["http://activitystrea.ms/spec/1.0/"][object][0]["child"];
        if (is_array($child)) {
+               logger('get_atom_elements: Looking for status.net repeated message');
+
                $message = $child["http://activitystrea.ms/spec/1.0/"]["object"][0]["child"][SIMPLEPIE_NAMESPACE_ATOM_10]["content"][0]["data"];
                $author = $child[SIMPLEPIE_NAMESPACE_ATOM_10]["author"][0]["child"][SIMPLEPIE_NAMESPACE_ATOM_10];
                $uri = $author["uri"][0]["data"];
@@ -801,6 +803,8 @@ function get_atom_elements($feed,$item) {
                $avatar = $avatar["href"];
 
                if (($name != "") and ($uri != "") and ($avatar != "") and ($message != "")) {
+                       logger('get_atom_elements: fixing sender of repeated message');
+
                        $res["owner-name"] = $res["author-name"];
                        $res["owner-link"] = $res["author-link"];
                        $res["owner-avatar"] = $res["author-avatar"];