Added length limit to tags

This commit is contained in:
barelyprofessional
2026-05-10 17:58:28 -05:00
parent f821a96f70
commit ec960d4cfe

View File

@@ -96,6 +96,13 @@ public class AddImageTagsCommand : ICommand
return;
}
if (tags.Any(tag => tag.Length > 50))
{
await botInstance.SendChatMessageAsync($"{user.FormatUsername()}, tag length limit is 50 characters",
true);
return;
}
image.TagList = image.TagList.Concat(tags).Distinct().ToList();
if (image.TagList.Count > 50)
{