Browse Source

Merge pull request #20719 from abpframework/issue-4329

Fix: Blog tag problem
pull/20725/head
Engincan VESKE 2 years ago
committed by GitHub
parent
commit
6e4c0f434c
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      modules/blogging/src/Volo.Blogging.Application/Volo/Blogging/Posts/PostAppService.cs

2
modules/blogging/src/Volo.Blogging.Application/Volo/Blogging/Posts/PostAppService.cs

@ -308,7 +308,7 @@ namespace Volo.Blogging.Posts
foreach (var newTag in newTags) foreach (var newTag in newTags)
{ {
var tag = tags.FirstOrDefault(t => t.Name == newTag); var tag = tags.FirstOrDefault(t => t.Name.Equals(newTag, StringComparison.OrdinalIgnoreCase));
if (tag == null) if (tag == null)
{ {

Loading…
Cancel
Save