Append tags instead of overwriting when tagging something that already has tags

This commit is contained in:
barelyprofessional
2026-05-10 16:40:30 -05:00
parent 94e7017f29
commit 8d06b75a57

View File

@@ -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);