diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 9e1b33138e2ec0bd4cc5cab1775b2e06c1daadc9..9c018eed4862e2e907d9f0c07073af0300277e96 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -9,7 +9,7 @@ spring.thymeleaf.layout-dialect.enabled=true spring.datasource.url=jdbc:mariadb://localhost:3306/polish_community spring.datasource.username=root -spring.datasource.password=comsc +spring.datasource.password= spring.jpa.show-sql=true spring.jpa.properties.hibernate.format_sql=true diff --git a/src/main/resources/static/js/feed/feed.js b/src/main/resources/static/js/feed/feed.js index 1200c13e4050c562ac776e54f4b78d5ca53f972e..468f6f895c809f4963dde1200d66963cbe732920 100644 --- a/src/main/resources/static/js/feed/feed.js +++ b/src/main/resources/static/js/feed/feed.js @@ -26,7 +26,6 @@ async function fetchPosts() { const response = await fetch(API_BASE_URL); if (!response.ok) throw new Error('Failed to fetch posts'); posts = await response.json(); - posts.reverse(); renderPosts(); } catch (error) { console.error('Error fetching posts:', error);