presence: forgot to add state/details url to non-listening

This commit is contained in:
Cynthia Foxwell 2025-07-10 19:30:06 -06:00
parent 90d0badc66
commit d745c321b6
Signed by: Cynosphere
SSH key fingerprint: SHA256:H3SM8ufP/uxqLwKSH7xY89TDnbR9uOHzjLoBr0tlajk

View file

@ -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]})`;
}