event attachments still weren't being delivered to zot6
This commit is contained in:
parent
95871fe13c
commit
9641254443
@ -195,6 +195,13 @@ class Activity {
|
|||||||
if(! $ev['nofinish']) {
|
if(! $ev['nofinish']) {
|
||||||
$y['endTime'] = (($ev['adjust']) ? datetime_convert('UTC','UTC',$ev['dtend'], ATOM_TIME) : datetime_convert('UTC','UTC',$ev['dtend'],'Y-m-d\\TH:i:s-00:00'));
|
$y['endTime'] = (($ev['adjust']) ? datetime_convert('UTC','UTC',$ev['dtend'], ATOM_TIME) : datetime_convert('UTC','UTC',$ev['dtend'],'Y-m-d\\TH:i:s-00:00'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// copy attachments from the passed object - these are already formatted for ActivityStreams
|
||||||
|
|
||||||
|
if($x['attachment']) {
|
||||||
|
$y['attachment'] = $x['attachment'];
|
||||||
|
}
|
||||||
|
|
||||||
if($actor) {
|
if($actor) {
|
||||||
return $y;
|
return $y;
|
||||||
}
|
}
|
||||||
@ -404,7 +411,7 @@ class Activity {
|
|||||||
$ret = [];
|
$ret = [];
|
||||||
|
|
||||||
if($item['attach']) {
|
if($item['attach']) {
|
||||||
$atts = json_decode($item['attach'],true);
|
$atts = ((is_array($item['attach'])) ? $item['attach'] : json_decode($item['attach'],true));
|
||||||
if($atts) {
|
if($atts) {
|
||||||
foreach($atts as $att) {
|
foreach($atts as $att) {
|
||||||
if(strpos($att['type'],'image')) {
|
if(strpos($att['type'],'image')) {
|
||||||
|
Reference in New Issue
Block a user