diff options
author | Alexander Griffith <griffitaj@gmail.com> | 2018-02-26 21:05:08 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-26 21:05:08 -0500 |
commit | f6f6c08976a414762cd512e52237b143dc0e2f30 (patch) | |
tree | 65a51dfd49d08f5f314a0276706fe1dd9f827c2a /lisp | |
parent | 285765b9f4f51902d1e00ee9e95af7a52916c959 (diff) | |
parent | 54cc51e72d9bf610b036f2df7eebd79db47e0bc3 (diff) |
Merge pull request #151 from alexjgriffith/fix-numericp
Check if an id is a number before attempting to convert it. Closes #150 in main timelines
Diffstat (limited to 'lisp')
-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 c44ac01..38aee76 100644 --- a/lisp/mastodon-tl.el +++ b/lisp/mastodon-tl.el @@ -354,7 +354,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 @@ -367,7 +369,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) |