The object-type is now transmitted as well

This commit is contained in:
Michael Vogel 2016-01-27 02:38:52 +01:00
parent c0eb7b10a3
commit 45a5f63d35

View File

@ -767,6 +767,13 @@ class dfrn {
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']);
if ($actobj)
$entry->appendChild($actobj);