branch: elpa/mastodon
commit bc951d430e2c725e0e93cdae0e5464b2c11829b7
Merge: 63e7e6823d 734b7cc518
Author: martianh <marti...@noreply.codeberg.org>
Commit: martianh <marti...@noreply.codeberg.org>

    Merge pull request 'Made mastodon-toot--read-poll-expiry accept any number 
of seconds.' (#692) from davemq/mastodon.el:mastodon-tweet-expiry-fix into 
develop
---
 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 9ebb1ef0c7..e50d42d718 100644
--- a/lisp/mastodon-toot.el
+++ b/lisp/mastodon-toot.el
@@ -1487,7 +1487,8 @@ Return a cons of a human readable string, and a 
seconds-from-now string."
                                     options nil 'confirm)))
     (or (assoc response options #'string=)
         (if (< (string-to-number response) 600)
-            (car options))))) ;; min 5 mins
+            (car options) ;; min 5 mins
+         (cons (format "%s seconds" response) response)))))
 
 (defun mastodon-toot--poll-expiry-options-alist ()
   "Return an alist of expiry options options in seconds."

Reply via email to