mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-15 18:42:44 -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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
image.TagList = tags;
|
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 {tags.Humanize()}", true);
|
||||||
|
|||||||
Reference in New Issue
Block a user