branch: elpa/mastodon
commit 8ae02d6fc82fda30ef07e8b60eb696ea869fcc6c
Author: marty hiatt <martianhia...@disroot.org>
Commit: marty hiatt <martianhia...@disroot.org>

    fix media order on edit toot. fix #655.
---
 lisp/mastodon-toot.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el
index 8d80cca8ea..6d9295f6d9 100644
--- a/lisp/mastodon-toot.el
+++ b/lisp/mastodon-toot.el
@@ -1006,7 +1006,8 @@ instance to edit a toot."
              ;; adopt reply-to-id, visibility, CW, language, and media:
              (mastodon-toot--set-toot-properties .in_reply_to_id .visibility
                                                  source-cw .language nil nil
-                                                 .media_attachments .poll)
+                                                 ;; maintain media order:
+                                                 (reverse .media_attachments) 
.poll)
              (setq mastodon-toot--edit-item-id id))))))))
 
 (defun mastodon-toot--get-toot-source (id)

Reply via email to