From b77229595e932bb3fa88f6e49e9db72427146100 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Wed, 28 Feb 2018 11:30:47 +0100 Subject: [PATCH] Added notification types --- jobs/test/test.go | 1 + pages/notifications/notifications.go | 1 + pages/paypal/success.go | 1 + 3 files changed, 3 insertions(+) diff --git a/jobs/test/test.go b/jobs/test/test.go index a5d1ac73..ad649ea0 100644 --- a/jobs/test/test.go +++ b/jobs/test/test.go @@ -60,6 +60,7 @@ func testPackage(pkg string) { Message: "Test failed", Link: "https://" + pkg, Icon: "https://notify.moe/images/brand/220.png", + Type: arn.NotificationTypePackageTest, }) return } diff --git a/pages/notifications/notifications.go b/pages/notifications/notifications.go index 0845f297..adb1189f 100644 --- a/pages/notifications/notifications.go +++ b/pages/notifications/notifications.go @@ -40,6 +40,7 @@ func Test(ctx *aero.Context) string { Title: "Anime Notifier", Message: "Yay, it works!", Icon: "https://" + ctx.App.Config.Domain + "/images/brand/220.png", + Type: arn.NotificationTypeTest, }) return "ok" diff --git a/pages/paypal/success.go b/pages/paypal/success.go index 290f9821..5f748632 100644 --- a/pages/paypal/success.go +++ b/pages/paypal/success.go @@ -90,6 +90,7 @@ func Success(ctx *aero.Context) string { Message: user.Nick + " paid " + payment.Amount + " " + payment.Currency + " making his new balance " + strconv.Itoa(user.Balance), Icon: user.LargeAvatar(), Link: "https://" + ctx.App.Config.Domain + "/api/paypalpayment/" + payment.ID, + Type: arn.NotificationTypePurchase, }) }()