mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
Fix PATCHing members with one-sided proxy tags
This commit is contained in:
parent
378cba09e5
commit
d6edbe8e8d
1 changed files with 1 additions and 1 deletions
|
|
@ -97,7 +97,7 @@ namespace PluralKit.API.Controllers
|
|||
return BadRequest($"Member descriptions too long ({newMember.Description.Length} > {Limits.MaxDescriptionLength}.");
|
||||
|
||||
// Sanity bounds checks
|
||||
if (newMember.ProxyTags?.Any(tag => tag.Prefix.Length > 1000 || tag.Suffix.Length > 1000) ?? false)
|
||||
if (newMember.ProxyTags?.Any(tag => (tag.Prefix?.Length ?? 0) > 1000 || (tag.Suffix?.Length ?? 0) > 1000) ?? false)
|
||||
return BadRequest();
|
||||
|
||||
member.Name = newMember.Name;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue