mirror of
https://github.com/friendica/friendica
synced 2024-12-23 16:00:16 +00:00
Small bugfix: We always liked the parent
This commit is contained in:
parent
e99ec7feeb
commit
c8a62a4073
1 changed files with 2 additions and 1 deletions
|
@ -1712,7 +1712,8 @@ class ostatus {
|
||||||
|
|
||||||
$as_object = $doc->createElement("activity:object");
|
$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']);
|
$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]));
|
xml::add_element($doc, $as_object, "activity:object-type", self::construct_objecttype($parent[0]));
|
||||||
|
|
Loading…
Reference in a new issue