write subscriptions.gmi after removing sub

This commit is contained in:
nytpu
2021-03-18 17:02:12 -06:00
parent b4d303e24e
commit 562869c8ac
+5
View File
@@ -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)