2019-07-10 00:19:18 +02:00
|
|
|
namespace PluralKit.Core {
|
2019-08-14 07:16:48 +02:00
|
|
|
public static class Limits
|
|
|
|
{
|
|
|
|
public static readonly int MaxProxyNameLength = 80;
|
|
|
|
|
2019-04-29 20:28:53 +02:00
|
|
|
public static readonly int MaxSystemNameLength = 100;
|
2019-08-14 07:16:48 +02:00
|
|
|
public static readonly int MaxSystemTagLength = MaxProxyNameLength - 1;
|
2020-10-09 12:18:29 +02:00
|
|
|
public static readonly int MaxMemberCount = 1000;
|
2020-10-09 14:23:31 +00:00
|
|
|
public static int MaxMembersWarnThreshold (int memberLimit) => memberLimit - 50;
|
2020-08-26 23:22:33 +02:00
|
|
|
public static readonly int MaxGroupCount = 250;
|
2019-04-29 20:28:53 +02:00
|
|
|
public static readonly int MaxDescriptionLength = 1000;
|
2019-08-14 07:16:48 +02:00
|
|
|
public static readonly int MaxMemberNameLength = 100; // Fair bit larger than MaxProxyNameLength for bookkeeping
|
2020-06-29 23:51:12 +02:00
|
|
|
public static readonly int MaxGroupNameLength = 100;
|
2019-04-29 20:36:09 +02:00
|
|
|
public static readonly int MaxPronounsLength = 100;
|
2020-05-05 16:04:17 +02: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-17 01:23:09 +02:00
|
|
|
public static readonly long AvatarFileSizeLimit = 1024 * 1024;
|
|
|
|
public static readonly int AvatarDimensionLimit = 1000;
|
2019-04-29 20:28:53 +02:00
|
|
|
}
|
|
|
|
}
|