From: Michael Vogel Date: Wed, 27 Jan 2016 01:38:52 +0000 (+0100) Subject: The object-type is now transmitted as well X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=45a5f63d35e7460e8de194ee778fba6d500deb77;p=friendica.git The object-type is now transmitted as well --- diff --git a/include/dfrn.php b/include/dfrn.php index ac67bf0974..2c8e8ce38f 100644 --- a/include/dfrn.php +++ b/include/dfrn.php @@ -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);