2019-07-09 22:19:18 +00:00
|
|
|
namespace PluralKit.Core {
|
2019-08-14 05:16:48 +00:00
|
|
|
public static class Limits
|
|
|
|
{
|
|
|
|
public static readonly int MaxProxyNameLength = 80;
|
|
|
|
|
2019-04-29 18:28:53 +00:00
|
|
|
public static readonly int MaxSystemNameLength = 100;
|
2019-08-14 05:16:48 +00:00
|
|
|
public static readonly int MaxSystemTagLength = MaxProxyNameLength - 1;
|
2020-04-09 15:25:01 +00:00
|
|
|
public static readonly int MaxMemberCount = 1500;
|
2019-10-20 07:16:57 +00:00
|
|
|
public static readonly int MaxMembersWarnThreshold = MaxMemberCount - 50;
|
2019-04-29 18:28:53 +00:00
|
|
|
public static readonly int MaxDescriptionLength = 1000;
|
2019-08-14 05:16:48 +00:00
|
|
|
public static readonly int MaxMemberNameLength = 100; // Fair bit larger than MaxProxyNameLength for bookkeeping
|
2020-06-29 21:51:12 +00:00
|
|
|
public static readonly int MaxGroupNameLength = 100;
|
2019-04-29 18:36:09 +00:00
|
|
|
public static readonly int MaxPronounsLength = 100;
|
2020-05-05 14:04:17 +00:00
|
|
|
public static readonly int MaxUriLength = 256; // May need to be set higher, I know there are URLs longer than this in prod (they can rehost, I guess...)
|
2019-05-16 23:23:09 +00:00
|
|
|
public static readonly long AvatarFileSizeLimit = 1024 * 1024;
|
|
|
|
public static readonly int AvatarDimensionLimit = 1000;
|
2019-04-29 18:28:53 +00:00
|
|
|
}
|
|
|
|
}
|