fix(sub): stop appending the node name to subscription remarks (#5231)

The #5035 change tagged node-hosted entries with the node name to
disambiguate multi-node subscriptions, but the node name is
panel-internal and leaked into the profile names end users see in
their client apps. Drop the suffix entirely — remarks are the
admin-set inbound remark again.
This commit is contained in:
MHSanaei
2026-06-12 22:35:05 +02:00
parent 3c68b039f6
commit b770287995
2 changed files with 15 additions and 13 deletions
-13
View File
@@ -1528,19 +1528,6 @@ func (s *SubService) genRemark(inbound *model.Inbound, email string, extra strin
if len(extra) > 0 {
orders['o'] = extra
}
// A node-hosted inbound usually shares its remark with the local copy it
// was synced from, so a multi-node subscription would list several
// identically-named entries differing only by address (#5035). Tag such
// entries with the node name unless the admin already put it in the remark.
if inbound.NodeID != nil && s.nodesByID != nil {
if n, ok := s.nodesByID[*inbound.NodeID]; ok && n != nil && n.Name != "" && !strings.Contains(orders['i'], n.Name) {
if orders['i'] != "" {
orders['i'] += "@" + n.Name
} else {
orders['i'] = n.Name
}
}
}
var remark []string
for i := 0; i < len(orderChars); i++ {