summaryrefslogtreecommitdiff
path: root/comitium.go
diff options
context:
space:
mode:
authornytpu <alex@nytpu.com>2021-03-18 17:02:12 -0600
committernytpu <alex@nytpu.com>2021-03-18 17:02:12 -0600
commit562869c8ac8961ddd93afd9f275942f9d88eca44 (patch)
treeda4fe480fa6fe4c16b046256d94c35d15ed12d56 /comitium.go
parentb4d303e24ef7c16ff9ba6bdeab704783040a770e (diff)
write subscriptions.gmi after removing sub
Diffstat (limited to 'comitium.go')
-rw-r--r--comitium.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/comitium.go b/comitium.go
index 1dc25d8..9714a23 100644
--- a/comitium.go
+++ b/comitium.go
@@ -92,6 +92,11 @@ func main() {
argCheck(c.Args(), 1, true, "Please provide a URL to remove.")
delete(core.Data.Feeds, c.Arg(0))
delete(core.Data.Pages, c.Arg(0))
+ err = core.Data.WriteSubs(dataPath)
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error saving subscriptions: %v\n", err)
+ os.Exit(1)
+ }
}
err = core.Data.WriteJSON(dataPath)