1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/discourse_ynh.git synced 2024-09-03 18:26:18 +02:00
discourse_ynh/sources/patches/main-6-fix-download-calendar.patch

26 lines
996 B
Diff
Raw Normal View History

2024-07-26 14:21:38 +02:00
From e515c68e1011d42f5fd817a799f4694fb469eea2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= <felix@piedallu.me>
Date: Fri, 26 Jul 2024 14:20:17 +0200
Subject: [PATCH 3/3] Fix download calendar
---
app/assets/javascripts/discourse/app/lib/download-calendar.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
2022-07-27 04:15:08 +02:00
diff --git a/app/assets/javascripts/discourse/app/lib/download-calendar.js b/app/assets/javascripts/discourse/app/lib/download-calendar.js
2024-07-26 14:21:38 +02:00
index 238a8cf0..541b6b1b 100644
2022-07-27 04:15:08 +02:00
--- a/app/assets/javascripts/discourse/app/lib/download-calendar.js
+++ b/app/assets/javascripts/discourse/app/lib/download-calendar.js
2024-07-26 14:21:38 +02:00
@@ -23,7 +23,7 @@ export function downloadCalendar(title, dates, recurrenceRule = null) {
2022-07-27 04:15:08 +02:00
}
2024-07-26 14:21:38 +02:00
export function downloadIcs(title, dates, recurrenceRule) {
2022-07-27 04:15:08 +02:00
- const REMOVE_FILE_AFTER = 20_000;
+ const REMOVE_FILE_AFTER = 20000;
2024-07-26 14:21:38 +02:00
const file = new File([generateIcsData(title, dates, recurrenceRule)], {
2022-07-27 04:15:08 +02:00
type: "text/plain",
});
2024-07-26 14:21:38 +02:00
--
2.45.2