From 60d9643ecd64a9ca1effc0214908f2c97802c394 Mon Sep 17 00:00:00 2001
From: Jeremy Richard <githubarj@cardiff.ac.uk>
Date: Wed, 11 Dec 2024 22:22:41 +0000
Subject: [PATCH] fixed having the post be in reverse order

---
 src/main/resources/application.properties | 2 +-
 src/main/resources/static/js/feed/feed.js | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties
index 9e1b331..9c018ee 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 1200c13..468f6f8 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);
-- 
GitLab