From ba3a754d15da9bedef2a1b0e3184765bf006fb16 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Tue, 6 Nov 2018 19:45:03 +0900 Subject: [PATCH] Added patch to reset privacy settings --- .../user-privacy-location.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 patches/user-privacy-location/user-privacy-location.go diff --git a/patches/user-privacy-location/user-privacy-location.go b/patches/user-privacy-location/user-privacy-location.go new file mode 100644 index 00000000..45451c5b --- /dev/null +++ b/patches/user-privacy-location/user-privacy-location.go @@ -0,0 +1,19 @@ +package main + +import ( + "github.com/animenotifier/arn" + "github.com/fatih/color" +) + +func main() { + color.Yellow("Resetting location privacy to enabled") + + defer color.Green("Finished.") + defer arn.Node.Close() + + for user := range arn.StreamUsers() { + settings := user.Settings() + settings.Privacy.ShowLocation = true + settings.Save() + } +}