mirror of
https://github.com/friendica/friendica
synced 2025-04-23 20:30:10 +00:00
ActivityPub: Rudimentary support for videos
This commit is contained in:
parent
db0b848ae3
commit
37ad4a7d22
2 changed files with 8 additions and 3 deletions
|
@ -211,6 +211,11 @@ class Processor
|
|||
$item['title'] = HTML::toBBCode($activity['name']);
|
||||
$item['content-warning'] = HTML::toBBCode($activity['summary']);
|
||||
$item['body'] = self::convertMentions(HTML::toBBCode($activity['content']));
|
||||
|
||||
if (($activity['object_type'] == 'as:Video') && !empty($activity['alternate-url'])) {
|
||||
$item['body'] .= "\n[video]" . $activity['alternate-url'] . '[/video]';
|
||||
}
|
||||
|
||||
$item['location'] = $activity['location'];
|
||||
|
||||
if (!empty($item['latitude']) && !empty($item['longitude'])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue