Skip to content

Commit

Permalink
Fix upper case in tags for sankaku
Browse files Browse the repository at this point in the history
  • Loading branch information
ImoutoChan committed May 20, 2024
1 parent e0e92a8 commit b8b8818
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -308,12 +308,12 @@ private async Task<IReadOnlyCollection<Tag>> GetTags(SankakuPost post)
});

return tags
.Select(x => new Tag(x.type, x.tag.Replace('_', ' ')))
.Select(x => new Tag(x.type, x.tag.Replace('_', ' ').ToLowerInvariant()))
.ToList();
}

return post.Tags
.Select(x => new Tag(GetTagType(x.Type), x.TagName.Replace('_', ' ')))
.Select(x => new Tag(GetTagType(x.Type), x.TagName.Replace('_', ' ').ToLowerInvariant()))
.ToList();
}

Expand Down

0 comments on commit b8b8818

Please sign in to comment.