From fca71334e9605b900144ed12fc0c436178c314ba Mon Sep 17 00:00:00 2001 From: creations Date: Wed, 14 May 2025 10:35:46 -0400 Subject: [PATCH] fix listening --- public/js/index.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/public/js/index.js b/public/js/index.js index 4c0bfc4..3ff4eb8 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -258,18 +258,15 @@ function buildActivityHTML(activity) { const activityTypeMap = { 0: "Playing", 1: "Streaming", - 2: "Listening", + 2: "Listening to", 3: "Watching", 4: "Custom Status", 5: "Competing", }; - const activityType = - activity.name === "Spotify" - ? "Listening to Spotify" - : activity.name === "TIDAL" - ? "Listening to TIDAL" - : activityTypeMap[activity.type] || "Playing"; + const activityType = activityTypeMap[activity.type] + ? `${activityTypeMap[activity.type]}${activity.type === 2 ? ` ${activity.name}` : ""}` + : "Playing"; const activityTimestamp = start && progress === null