From 29ce93d30801909603db4592c05376d6fb43df60 Mon Sep 17 00:00:00 2001
From: ehpersonal38 <103586016+ehpersonal38@users.noreply.github.com>
Date: Tue, 10 May 2022 09:31:42 -0400
Subject: [PATCH] Allow 'notify each new species' to be toggled too
this code is a slight abomination but it does work!
---
scripts/config.php | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/scripts/config.php b/scripts/config.php
index 7f2b1fb..6c4e73d 100644
--- a/scripts/config.php
+++ b/scripts/config.php
@@ -17,6 +17,11 @@ if(isset($_GET['apprise_notify_each_detection'])) {
} else {
$apprise_notify_each_detection = 0;
}
+if(isset($_GET['apprise_notify_each_species'])) {
+ exec('sudo systemctl start pushed_notifications.service');
+} else {
+ exec('sudo systemctl stop pushed_notifications.service');
+}
@@ -122,7 +127,7 @@ https://discordapp.com/api/webhooks/{WebhookID}/{WebhookToken}
-
+ >
>