The object-type is now transmitted as well
This commit is contained in:
parent
c0eb7b10a3
commit
45a5f63d35
1 changed files with 7 additions and 0 deletions
|
@ -767,6 +767,13 @@ class dfrn {
|
||||||
|
|
||||||
xml_add_element($doc, $entry, "activity:verb", construct_verb($item));
|
xml_add_element($doc, $entry, "activity:verb", construct_verb($item));
|
||||||
|
|
||||||
|
if ($item['object-type'] != "")
|
||||||
|
xml_add_element($doc, $entry, "activity:object-type", $item['object-type']);
|
||||||
|
elseif ($item['id'] == $item['parent'])
|
||||||
|
xml_add_element($doc, $entry, "activity:object-type", ACTIVITY_OBJ_NOTE);
|
||||||
|
else
|
||||||
|
xml_add_element($doc, $entry, "activity:object-type", ACTIVITY_OBJ_COMMENT);
|
||||||
|
|
||||||
$actobj = self::create_activity($doc, "activity:object", $item['object']);
|
$actobj = self::create_activity($doc, "activity:object", $item['object']);
|
||||||
if ($actobj)
|
if ($actobj)
|
||||||
$entry->appendChild($actobj);
|
$entry->appendChild($actobj);
|
||||||
|
|
Loading…
Reference in a new issue