Small bugfix: We always liked the parent

pull/3010/head
Michael Vogel 2016-04-02 17:43:53 +02:00 zatwierdzone przez Roland Haeder
rodzic e99ec7feeb
commit c8a62a4073
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B72F8185C6C7BD78
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -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]));