Skip to content

fix(formatter): remove stray space breaking mochi profile links - #47

Merged
tieubao merged 1 commit into
mainfrom
fix/profile-link-space
Jul 17, 2026
Merged

fix(formatter): remove stray space breaking mochi profile links#47
tieubao merged 1 commit into
mainfrom
fix/profile-link-space

Conversation

@tieubao

@tieubao tieubao commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

What

Remove a stray space inside the profile URL of masked links built by the mochi() profile renderer (mochi-formatter + same copy-paste bug in mochi-id).

Why

Discord refuses to parse a masked link whose URL contains a space, so transaction rows in the balance embed fell back to raw markdown text:

9d ago | cce99 | +2 ICY from [mochi:Auto Rewards](https://mochi.gg /profile/121327584257067)

while vault/app profiles (different renderers, no space) rendered fine.

How

${HOMEPAGE} /profile/${p.id} -> ${HOMEPAGE}/profile/${p.id} in the value and url fields, plus dropping trailing spaces in plain/url.

🤖 Generated with Claude Code

The mochi() profile renderer built masked links as
[label](HOMEPAGE /profile/id) with a space inside the URL. Discord
refuses to parse masked links whose URL contains a space, so
transaction rows fell back to raw markdown text, e.g.
[mochi:Auto Rewards](https://mochi.gg /profile/...). Same copy-paste
bug existed in mochi-id. Also drops the trailing spaces in the plain
and url fields.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@tieubao
tieubao merged commit 4cbd2c8 into main Jul 17, 2026
2 of 4 checks passed
@tieubao
tieubao deleted the fix/profile-link-space branch July 17, 2026 04:04
tieubao added a commit to consolelabs/mochi-discord that referenced this pull request Jul 17, 2026
)

mochi-formatter <=20.0.11 builds mochi() profile links with a stray
space in the URL, so Discord shows raw [label](url) text in the
balance embed's Recent Transactions. Upstream fix is merged
(consolelabs/mochi.js#47) but npm publish is blocked on the single
npm maintainer, so patch the installed dist at image build; the sed
is a no-op once formatter >=20.0.12 ships, then remove it.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
tieubao pushed a commit to consolelabs/mochi-discord that referenced this pull request Jul 17, 2026
## [6.58.18](v6.58.17...v6.58.18) (2026-07-17)

### Bug Fixes

* **docker:** patch formatter dist to unbreak profile masked links ([#1737](#1737)) ([3e9cf4f](3e9cf4f)), closes [consolelabs/mochi.js#47](consolelabs/mochi.js#47)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant