diff options
| author | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-07-28 15:07:12 +0200 |
|---|---|---|
| committer | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-07-28 15:07:12 +0200 |
| commit | 310ac404f25b412c5c1ead12247b4eb36e9f0025 (patch) | |
| tree | 6e1dcc5e1f85a483cef7044d341b7c940c1690a8 /internal/calfeed/ical.go | |
| parent | 44472bbe31475a3c672ae003d928d7caffb4b50a (diff) | |
| parent | c5abf87fa7198c8f245f407774e2326e4b6c9b9c (diff) | |
| download | lectio-310ac404f25b412c5c1ead12247b4eb36e9f0025.tar.gz lectio-310ac404f25b412c5c1ead12247b4eb36e9f0025.zip | |
Merge branch 'engine-precedence-fixes': OF/EF calendar+readings flawlessness pass
Per-day validation vs litcal (OF) and missalemeum (EF) 2005-2050, all defects
fixed and re-validated to zero: OF calendar 0 real errors forward, OF readings
0 unresolvable, EF 0 reading gaps + resumed Sundays correct.
Diffstat (limited to 'internal/calfeed/ical.go')
| -rw-r--r-- | internal/calfeed/ical.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/internal/calfeed/ical.go b/internal/calfeed/ical.go index bce3710..810847d 100644 --- a/internal/calfeed/ical.go +++ b/internal/calfeed/ical.go @@ -4,6 +4,8 @@ import ( "strconv" "strings" "time" + + "github.com/lukaszkasprzak/lectio/internal/config" ) // icalEscape neutralises RFC-5545 TEXT specials AND all CR/LF, so untrusted @@ -58,6 +60,12 @@ func ICal(form string, days []DayView, stamp time.Time) []byte { add("PRODID:-//lectio//calendar//EN") add("CALSCALE:GREGORIAN") add("METHOD:PUBLISH") + // AGPL-3.0 ยง13 offer for subscribers who only ever see the .ics feed. + // X- properties are the RFC-5545 extension point; unknown ones are + // ignored by clients, so this is inert for consumers and present for + // anyone who looks. + add("X-LECTIO-SOURCE:" + icalEscape(config.SourceURL)) + add("X-LECTIO-LICENSE:" + icalEscape(config.License)) add("X-WR-CALNAME:" + icalEscape(calName(form))) ds := stamp.UTC().Format("20060102T150405Z") for _, d := range days { |
