mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-16 02:52:44 -04:00
Consider existing entries when informing the user what they tagged with
This commit is contained in:
@@ -99,7 +99,7 @@ public class AddImageTagsCommand : ICommand
|
|||||||
image.TagList = image.TagList.Concat(tags).Distinct().ToList();
|
image.TagList = image.TagList.Concat(tags).Distinct().ToList();
|
||||||
await db.SaveChangesAsync(ctx);
|
await db.SaveChangesAsync(ctx);
|
||||||
await botInstance.SendChatMessageAsync(
|
await botInstance.SendChatMessageAsync(
|
||||||
$"{user.FormatUsername()}, updated tags for image ID {id} with {tags.Humanize()}", true);
|
$"{user.FormatUsername()}, updated tags for image ID {id} with {image.TagList.Humanize()}", true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user