mirror of
https://github.com/friendica/friendica
synced 2025-04-26 13:50:11 +00:00
[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:
parent
59bd6fd908
commit
01e9beffc2
3 changed files with 90 additions and 59 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue