[ActivityPub] Add support for more attachments structures
- Add support for type: Page into [attachment], type: Link using href attribute - Ensure Receiver::process* parameter is an array - Remove superfluous eptiness check in JsonLD::fetchElementArray
This commit is contained in:
@@ -175,10 +175,6 @@ class JsonLD
|
||||
*/
|
||||
public static function fetchElementArray($array, $element, $key = null)
|
||||
{
|
||||
if (empty($array)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (!isset($array[$element])) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user