From 979991849c9105c5663ff94676f9d2b3e7ebeefb Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Sun, 5 Nov 2017 16:50:32 +0100 Subject: [PATCH 1/2] Updated installation instructions --- INSTALLATION.md | 5 +++++ patches/delete-private-data/delete-private-data.go | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/INSTALLATION.md b/INSTALLATION.md index 07d33897..de1ce564 100644 --- a/INSTALLATION.md +++ b/INSTALLATION.md @@ -30,6 +30,11 @@ * Start Chrome via `google-chrome --ignore-certificate-errors` +## Database + +* `go get github.com/animenotifier/database` +* `ln -s $GOPATH/src/github.com/animenotifier/database ~/.aero/db/arn` + ## API keys * Get a Google OAuth 2.0 client key & secret from [console.developers.google.com](https://console.developers.google.com) diff --git a/patches/delete-private-data/delete-private-data.go b/patches/delete-private-data/delete-private-data.go index 7520cdf1..339ba415 100644 --- a/patches/delete-private-data/delete-private-data.go +++ b/patches/delete-private-data/delete-private-data.go @@ -10,7 +10,6 @@ func main() { defer arn.Node.Close() arn.DB.Clear("EmailToUser") - arn.DB.Clear("GoogleToUser") // Iterate over the stream count := 0 @@ -30,6 +29,9 @@ func main() { user.AgeRange = arn.UserAgeRange{} user.Location = arn.UserLocation{} + user.PushSubscriptions().Items = []*arn.PushSubscription{} + user.PushSubscriptions().Save() + // Save in DB user.Save() } From f26e2d55dcbb5a872cee44606c26e06958471f35 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Sun, 5 Nov 2017 17:02:39 +0100 Subject: [PATCH 2/2] Updated installation --- INSTALLATION.md | 1 + 1 file changed, 1 insertion(+) diff --git a/INSTALLATION.md b/INSTALLATION.md index de1ce564..60087c83 100644 --- a/INSTALLATION.md +++ b/INSTALLATION.md @@ -38,6 +38,7 @@ ## API keys * Get a Google OAuth 2.0 client key & secret from [console.developers.google.com](https://console.developers.google.com) +* Add `https://beta.notify.moe/auth/google/callback` as an authorized redirect URI * Create the file `notify.moe/security/api-keys.json`: ```json