From d9dad4ab91cfb0a1de86a28c1e3f4ba71cd4468f Mon Sep 17 00:00:00 2001 From: Maximilian Giller Date: Tue, 9 Jan 2024 22:42:49 +0100 Subject: [PATCH] Always returning sleep streak, on all activities --- src/index.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/index.php b/src/index.php index 95977d5..c6ca947 100755 --- a/src/index.php +++ b/src/index.php @@ -65,9 +65,7 @@ if (!isset($_GET["secret"]) || $_GET["secret"] != $SECRET_KEY) { respondAndDie($e->getMessage()); } handleTemplate($activity); - if ($activity->title == "Sleeping") { - $activity->streak = getStreakEntries("sleep"); - } + $activity->streak = getStreakEntries("sleep"); respondWithJson($activity->getPublicData()); }