diff options
author | alexjgriffith <griffitaj@gmail.com> | 2018-02-24 14:19:11 -0500 |
---|---|---|
committer | alexjgriffith <griffitaj@gmail.com> | 2018-02-24 14:19:11 -0500 |
commit | 3dc3e258b4a4bfee4ff8bfaa91ab1bbc7af29f5f (patch) | |
tree | e1c8ee65d4fe917255349fb17fdef23e304b8644 | |
parent | 0bd9567f8eb35d1c8f93ae9c6a29769d1485d46f (diff) |
Check if an id is a number before attempting to convert it. Closes #150
-rw-r--r-- | lisp/mastodon-tl.el | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el index 66452dd..9acf51a 100644 --- a/lisp/mastodon-tl.el +++ b/lisp/mastodon-tl.el @@ -267,7 +267,9 @@ also render the html" "&" "?") "max_id=" - (number-to-string id))))) + (if (numberp id ) + (number-to-string id) + id))))) (mastodon-http--get-json url))) ;; TODO @@ -280,7 +282,9 @@ also render the html" "&" "?") "since_id=" - (number-to-string id))))) + (if (numberp id) + (number-to-string id) + id))))) (mastodon-http--get-json url))) (defun mastodon-tl--property (prop &optional backward) |