Fixed:
- Uncaught Exception TypeError: "Argument 3 passed to Friendica\Protocol\DFRN::createActivity() must be of the type string, null given, called ..."
This commit is contained in:
parent
e6ddb167f6
commit
77c37ff2db
|
@ -904,12 +904,12 @@ class DFRN
|
||||||
XML::addElement($doc, $entry, "activity:object-type", Activity\ObjectType::COMMENT);
|
XML::addElement($doc, $entry, "activity:object-type", Activity\ObjectType::COMMENT);
|
||||||
}
|
}
|
||||||
|
|
||||||
$actobj = self::createActivity($doc, "activity:object", $item['object'], $item['uri-id']);
|
$actobj = self::createActivity($doc, "activity:object", $item['object'] ?? '', $item['uri-id']);
|
||||||
if ($actobj) {
|
if ($actobj) {
|
||||||
$entry->appendChild($actobj);
|
$entry->appendChild($actobj);
|
||||||
}
|
}
|
||||||
|
|
||||||
$actarg = self::createActivity($doc, "activity:target", $item['target'], $item['uri-id']);
|
$actarg = self::createActivity($doc, "activity:target", $item['target'] ?? '', $item['uri-id']);
|
||||||
if ($actarg) {
|
if ($actarg) {
|
||||||
$entry->appendChild($actarg);
|
$entry->appendChild($actarg);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user