mirror of
https://github.com/friendica/friendica
synced 2025-04-26 06:30:11 +00:00
Merge pull request #5921 from annando/ap-video
ActivityPub: Rudimentary support for videos
This commit is contained in:
commit
ce74a4d9a1
2 changed files with 8 additions and 3 deletions
|
@ -698,10 +698,10 @@ class Receiver
|
|||
|
||||
// Special treatment for Hubzilla links
|
||||
if (is_array($object_data['alternate-url'])) {
|
||||
if (!empty($object['as:url'])) {
|
||||
$object_data['alternate-url'] = JsonLD::fetchElement($object_data['alternate-url'], 'as:href');
|
||||
|
||||
if (!is_string($object_data['alternate-url'])) {
|
||||
$object_data['alternate-url'] = JsonLD::fetchElement($object['as:url'], 'as:href');
|
||||
} else {
|
||||
$object_data['alternate-url'] = null;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue