Transmitting events to Diaspora does work again (#13777)

This commit is contained in:
Michael Vogel 2023-12-30 00:43:14 +01:00 committed by GitHub
parent 1564c297bb
commit ad1389b20a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3259,7 +3259,9 @@ class Diaspora
/// @todo - establish "all day" events in Friendica /// @todo - establish "all day" events in Friendica
$eventdata['all_day'] = 'false'; $eventdata['all_day'] = 'false';
$eventdata['timezone'] = 'UTC'; // @todo Should be user timezone - but only if the event is supposed to be displayed
// in that specific timezone and not the user's timezone.
// $eventdata['timezone'] = 'UTC';
if ($event['start']) { if ($event['start']) {
$eventdata['start'] = DateTimeFormat::utc($event['start'], $mask); $eventdata['start'] = DateTimeFormat::utc($event['start'], $mask);
@ -3403,8 +3405,7 @@ class Diaspora
if ($item['event-id'] > 0) { if ($item['event-id'] > 0) {
$event = self::buildEvent($item['event-id']); $event = self::buildEvent($item['event-id']);
if (count($event)) { if (count($event)) {
// Deactivated, since Diaspora seems to have problems with the processing. $message['event'] = $event;
// $message['event'] = $event;
if ( if (
!empty($event['location']['address']) && !empty($event['location']['address']) &&