X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fostatus.php;h=b798a605f91eb9a609dee34335949eafaff5847b;hb=57cadf5b8f5d5c45f1931607c22145647ca52f36;hp=bf14536f9e604921c58a4fb541a9b26dc0cee661;hpb=4a3a63dfc1b970c8a5cdddfa162928e5ed8008f8;p=friendica.git diff --git a/include/ostatus.php b/include/ostatus.php index bf14536f9e..b798a605f9 100644 --- a/include/ostatus.php +++ b/include/ostatus.php @@ -1712,7 +1712,8 @@ class ostatus { $as_object = $doc->createElement("activity:object"); - $parent = q("SELECT * FROM `item` WHERE `id` = %d", intval($item["parent"])); + $parent = q("SELECT * FROM `item` WHERE `uri` = '%s' AND `uid` = %d", + dbesc($item["thr-parent"]), intval($item["uid"])); $parent_item = (($item['thr-parent']) ? $item['thr-parent'] : $item['parent-uri']); xml::add_element($doc, $as_object, "activity:object-type", self::construct_objecttype($parent[0]));