From e0e7ebfa28905f8388e7eeb2a1b7ab32d90d4acf Mon Sep 17 00:00:00 2001 From: nbsp Date: Thu, 8 Jan 2026 01:19:57 +0100 Subject: [PATCH] make .ttbp readable --- .nanpa/sheep-hate-siren.kdl | 1 + app/management.go | 2 +- main.go | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 .nanpa/sheep-hate-siren.kdl diff --git a/.nanpa/sheep-hate-siren.kdl b/.nanpa/sheep-hate-siren.kdl new file mode 100644 index 0000000..59400ec --- /dev/null +++ b/.nanpa/sheep-hate-siren.kdl @@ -0,0 +1 @@ +patch type="fixed" "make new .ttbp/ world-readable" diff --git a/app/management.go b/app/management.go index 45f5108..f3761c8 100644 --- a/app/management.go +++ b/app/management.go @@ -140,7 +140,7 @@ func (management *Management) Draw(state *ui.State) { func purgeFeels() { ttbp.Unpublish() os.RemoveAll(ttbp.PathUserEntries) - os.MkdirAll(ttbp.PathUserEntries, 0700) + os.MkdirAll(ttbp.PathUserEntries, 0755) } func wipeAccount() { diff --git a/main.go b/main.go index e4d2c3b..7f0c09c 100644 --- a/main.go +++ b/main.go @@ -40,7 +40,7 @@ press ↵ to set up an account, or Ctrl+c to quit. you can always come back late header := strings.ReplaceAll(header, "%USER%", user.Username) header = strings.ReplaceAll(header, "%DATETIME%", time.Now().Format(time.DateTime)) os.MkdirAll(ttbp.PathUserConfig, 0755) - os.MkdirAll(ttbp.PathUserEntries, 0700) + os.MkdirAll(ttbp.PathUserEntries, 0755) os.WriteFile(path.Join(ttbp.PathUserConfig, "header.txt"), []byte(header), 0644) os.WriteFile(path.Join(ttbp.PathUserConfig, "footer.txt"), footer, 0644) os.WriteFile(path.Join(ttbp.PathUserConfig, "style.css"), style, 0644)