mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-17 11:10:13 +00:00
Fix importing older export files
This commit is contained in:
parent
329a337518
commit
a1d91784a0
1 changed files with 5 additions and 3 deletions
|
|
@ -274,8 +274,10 @@ namespace PluralKit.Core
|
||||||
|
|
||||||
// Sanity checks
|
// Sanity checks
|
||||||
!AvatarUrl.IsLongerThan(1000) &&
|
!AvatarUrl.IsLongerThan(1000) &&
|
||||||
ProxyTags.Count < 100 &&
|
|
||||||
ProxyTags.All(t => !t.ProxyString.IsLongerThan(100)) &&
|
// Older versions have Prefix and Suffix as fields, meaning ProxyTags is null
|
||||||
|
(ProxyTags == null || ProxyTags.Count < 100 &&
|
||||||
|
ProxyTags.All(t => !t.ProxyString.IsLongerThan(100))) &&
|
||||||
!Prefix.IsLongerThan(100) && !Suffix.IsLongerThan(100);
|
!Prefix.IsLongerThan(100) && !Suffix.IsLongerThan(100);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue