feat: update allowManage logic to disable via environment variable and clean up install script flags

This commit is contained in:
Sarto
2026-04-04 02:57:14 +03:30
parent 9588d66fe9
commit 6f471b976c
2 changed files with 5 additions and 2 deletions
+4
View File
@@ -64,6 +64,10 @@ func main() {
if !*allowManage && os.Getenv("THEFEED_ALLOW_MANAGE") == "1" {
*allowManage = true
}
// THEFEED_ALLOW_MANAGE=0 explicitly disables, even if flag was set
if os.Getenv("THEFEED_ALLOW_MANAGE") == "0" {
*allowManage = false
}
if *msgLimit == 15 {
if v := os.Getenv("THEFEED_MSG_LIMIT"); v != "" {
if n, err := strconv.Atoi(v); err == nil && n > 0 {