From d745c321b61862dacd93f1004ef23c94379e9f8b Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Thu, 10 Jul 2025 19:30:06 -0600 Subject: [PATCH] presence: forgot to add state/details url to non-listening --- src/modules/utility/presence.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/modules/utility/presence.js b/src/modules/utility/presence.js index 2597777..0eca422 100644 --- a/src/modules/utility/presence.js +++ b/src/modules/utility/presence.js @@ -220,9 +220,18 @@ presence.callback = async function (msg, line) { descLines.push(albumLine); } } else { - if (activity.details) descLines.push(activity.details); + if (activity.details) { + let details = activity.details; + if (activity.details_url) { + details = `[${details}](${activity.details_url})`; + } + descLines.push(details); + } if (activity.state) { let stateLine = activity.state; + if (activity.state_url) { + stateLine = `[${stateLine}](${activity.state_url})`; + } if (activity.party?.size) { stateLine += ` (${activity.party.size[0]} of ${activity.party.size[1]})`; }