[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:
Hypolite Petovan 2020-06-04 15:51:14 -04:00
parent 59bd6fd908
commit 01e9beffc2
3 changed files with 90 additions and 59 deletions

View file

@ -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;
}