summary refs log tree commit diff
diff options
context:
space:
mode:
authorWlodekM <[email protected]>2024-11-30 21:28:43 +0200
committerWlodekM <[email protected]>2024-11-30 21:28:43 +0200
commit522ae475bb28a9746fc675423d119dbfcde70bfd (patch)
tree6e99c24dfefe08d16ca1281507aa31264ba6f10f
parentbeb7b741c1c6352a1930318489e15bb00eccc7a6 (diff)
a
-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);