add footer to page to be agpl compliant

This commit is contained in:
nytpu
2021-03-19 17:16:52 -06:00
parent 2974c5413c
commit d4ca695043
+15 -1
View File
@@ -74,7 +74,7 @@ func toLocalDay(t time.Time) time.Time {
func (d *FullData) WriteSubs(dataPath string) error { func (d *FullData) WriteSubs(dataPath string) error {
path := filepath.Join(dataPath, "subscriptions.gmi.new") path := filepath.Join(dataPath, "subscriptions.gmi.new")
rawPage := `# comitium subscribed feeds rawPage := `# subscribed feeds
## Feeds ## Feeds
Gemini, Atom, RSS, and JSON feeds from all over. Gemini, Atom, RSS, and JSON feeds from all over.
@@ -103,6 +103,13 @@ Watching these pages for any changes that occur.
} }
d.PagesMu.RUnlock() d.PagesMu.RUnlock()
rawPage += `
---
=> https://git.nytpu.com/comitium/about/ aggregated using comitium
`
err := os.WriteFile(path, []byte(rawPage), 0666) err := os.WriteFile(path, []byte(rawPage), 0666)
if err != nil { if err != nil {
return err return err
@@ -141,6 +148,13 @@ func (d *FullData) WriteFeed(dataPath string) error {
} }
} }
rawPage += `
---
=> https://git.nytpu.com/comitium/about/ aggregated using comitium
`
err := os.WriteFile(path, []byte(rawPage), 0666) err := os.WriteFile(path, []byte(rawPage), 0666)
if err != nil { if err != nil {
return err return err