fix(sub): render the full remark once per subscription, not once per credential (#6198)

* fix(sub): scope full remarks to subscription identity

* fix(sub): preserve configured remark whitespace

---------

Co-authored-by: n0ctal <293235942+n0ctal@users.noreply.github.com>
This commit is contained in:
n0ctal
2026-08-14 23:00:51 +05:00
committed by GitHub
parent 0496c23a26
commit 3b19091547
3 changed files with 39 additions and 9 deletions
+2 -3
View File
@@ -37,9 +37,8 @@ type SubService struct {
// other context — the sub info page, the panel's link/QR displays — renders
// the name-only template, like Remnawave.
subscriptionBody bool
// usageShown tracks, per client email, whether the info part of the template
// has already been emitted this request, so it appears on the first body
// link only. Per-request state; reset in PrepareForRequest.
// usageShown emits info once per subscription identity, including twins.
// PrepareForRequest resets this per-request state.
usageShown map[string]bool
showIdentityOnAllLinks bool
inboundService service.InboundService