Merge pull request #2151 from cryptpad/calendar-export-fixes

Calendar export fixes
This commit is contained in:
yflory 2026-02-04 15:28:07 +01:00 committed by GitHub
commit 6e8e6133bd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -52,7 +52,7 @@ define([
module.main = function (userDoc) {
var content = userDoc.content;
var content = userDoc.content || {};
var ICS = [
'BEGIN:VCALENDAR',
@ -227,7 +227,7 @@ define([
if (ud.from) { // "From" updates are not supported by ICS: make a new event
var _new = Util.clone(prev);
r.until = getICSDate(d - 1); // Stop previous recursion
r.until = d - 1; // Stop previous recursion
delete r.count;
addEvent(ICS, prev, null); // Add previous event
Array.prototype.push.apply(ICS, toAdd); // Add individual updates