summary refs log tree commit diff
path: root/pages/main/page.js
diff options
context:
space:
mode:
Diffstat (limited to 'pages/main/page.js')
-rw-r--r--pages/main/page.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/pages/main/page.js b/pages/main/page.js
index 370b525..928e360 100644
--- a/pages/main/page.js
+++ b/pages/main/page.js
@@ -97,7 +97,9 @@ export function onload() {
                         .class('post-content')
                         .html(md.render(msg?.content))
                     .child('div')
-                        .for(msg.attachments, a => html('img').class('attachment').attr('src', a))
+                        .for(msg.attachments, a => {
+                            returnhtml('img').class('attachment').attr('src', a)}
+                        )
                         .up()
                     .up()
                 .up()
@@ -108,7 +110,7 @@ export function onload() {
     msgArea.innerHTML = "";
     // :+1:
 
-    for (const msg of window.stores.sdlib.messages.reverse()) {
+    for (const msg of window.stores.sdlib.messages) {
         createMessage(msg)
     }
     scrollToBottomOfElement(msgArea.parentElement);