Made tags case insensitive

This commit is contained in:
2025-10-09 15:13:49 +01:00
parent 553f126f2a
commit cb7dcde7c5

View File

@@ -12,7 +12,7 @@
<% for (let index = posts.length - 1; index >= 0; index--) { %> <% for (let index = posts.length - 1; index >= 0; index--) { %>
<% if ( posts[index].deleted != true) { %> <% if ( posts[index].deleted != true) { %>
<% posts[index].tags.forEach((current_tag, tag_index) => { %> <% posts[index].tags.forEach((current_tag, tag_index) => { %>
<% if (current_tag == tag) { %> <% if (current_tag.toLowerCase() == tag.toLowerCase()) { %>
<%- include('../posts/tag', {post: posts[index], postID: index, user: users[posts[index].userID], comments: comments[index]}); %> <%- include('../posts/tag', {post: posts[index], postID: index, user: users[posts[index].userID], comments: comments[index]}); %>
<% } %> <% } %>
<% }) %> <% }) %>