mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-09 15:27:54 +00:00
fix(bot): validate url in pk;import
This commit is contained in:
parent
ac5774df3d
commit
2fea773d7e
4 changed files with 7 additions and 7 deletions
|
|
@ -115,7 +115,7 @@ public static class Errors
|
|||
public static PKError AvatarDimensionsTooLarge(int width, int height) => new(
|
||||
$"Image too large ({width}x{height} > {Limits.AvatarDimensionLimit}x{Limits.AvatarDimensionLimit}), try resizing the image.");
|
||||
|
||||
public static PKError InvalidUrl(string url) => new("The given URL is invalid.");
|
||||
public static PKError InvalidUrl => new("The given URL is invalid.");
|
||||
|
||||
public static PKError UrlTooLong(string url) =>
|
||||
new($"The given URL is too long ({url.Length}/{Limits.MaxUriLength} characters).");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue