mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-11 08:39:34 -04:00
Append tags instead of overwriting when tagging something that already has tags
This commit is contained in:
@@ -96,7 +96,7 @@ public class AddImageTagsCommand : ICommand
|
||||
return;
|
||||
}
|
||||
|
||||
image.TagList = tags;
|
||||
image.TagList = image.TagList.Concat(tags).Distinct().ToList();
|
||||
await db.SaveChangesAsync(ctx);
|
||||
await botInstance.SendChatMessageAsync(
|
||||
$"{user.FormatUsername()}, updated tags for image ID {id} with {tags.Humanize()}", true);
|
||||
|
||||
Reference in New Issue
Block a user