aboutsummaryrefslogtreecommitdiffstats
path: root/include/event.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2019-04-16 03:51:57 +0000
committerMario <mario@mariovavti.com>2019-04-26 10:43:56 +0200
commit2221d4d61284689d9b2894e0ec5f565e9cecf89c (patch)
tree10a75ab755293156344568383d281bc12e8b7795 /include/event.php
parent5f73a46c053a362bc97323df2b442f9cfcbab740 (diff)
downloadvolse-hubzilla-2221d4d61284689d9b2894e0ec5f565e9cecf89c.tar.gz
volse-hubzilla-2221d4d61284689d9b2894e0ec5f565e9cecf89c.tar.bz2
volse-hubzilla-2221d4d61284689d9b2894e0ec5f565e9cecf89c.zip
add attachments to zot6 event objects, add zot6 to federated transports (webfinger)
(cherry picked from commit 0615709a7ab7bba66b2a07d593e84a35ed083edb)
Diffstat (limited to 'include/event.php')
-rw-r--r--include/event.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/event.php b/include/event.php
index fdb9e1415..77118c329 100644
--- a/include/event.php
+++ b/include/event.php
@@ -4,8 +4,11 @@
* @brief Event related functions.
*/
+
use Sabre\VObject;
+use Zotlabs\Lib\Activity;
+
use Ramsey\Uuid\Uuid;
use Ramsey\Uuid\Exception\UnsatisfiedDependencyException;
@@ -65,7 +68,7 @@ function format_event_html($ev) {
}
function format_event_obj($jobject) {
- $event = array();
+ $event = [];
$object = json_decode($jobject,true);
@@ -1046,6 +1049,7 @@ function event_store_item($arr, $event) {
'location' => $arr['location'],
'adjust' => $arr['adjust'],
'content' => format_event_bbcode($arr),
+ 'attachment' => Activity::encode_attachment($r[0]),
'author' => array(
'name' => $r[0]['xchan_name'],
'address' => $r[0]['xchan_addr'],
@@ -1200,6 +1204,7 @@ function event_store_item($arr, $event) {
'location' => $arr['location'],
'adjust' => $arr['adjust'],
'content' => format_event_bbcode($arr),
+ 'attachment' => Activity::encode_attachment($item_arr),
'author' => array(
'name' => $x[0]['xchan_name'],
'address' => $x[0]['xchan_addr'],