Change equals to endswith as I think it's getting felted by the command prefix

This commit is contained in:
barelyprofessional
2026-05-14 21:37:50 -05:00
parent 95608dcb12
commit e064c37477
+1 -1
View File
@@ -321,7 +321,7 @@ public class GetRandomImage : ICommand
CancellationToken ctx)
{
await using var db = new ApplicationDbContext();
var untagged = message.MessageRawHtmlDecoded.Equals("untagged", StringComparison.CurrentCultureIgnoreCase);
var untagged = message.MessageRawHtmlDecoded.EndsWith("untagged", StringComparison.CurrentCultureIgnoreCase);
var keyKnown = arguments.TryGetValue("key", out var keyGroup);
var key = "everything";
if (keyKnown) key = keyGroup!.Value;