aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-tl.el
diff options
context:
space:
mode:
authoralexjgriffith <griffitaj@gmail.com>2018-02-24 14:19:11 -0500
committeralexjgriffith <griffitaj@gmail.com>2018-02-24 14:19:11 -0500
commit3dc3e258b4a4bfee4ff8bfaa91ab1bbc7af29f5f (patch)
treee1c8ee65d4fe917255349fb17fdef23e304b8644 /lisp/mastodon-tl.el
parent0bd9567f8eb35d1c8f93ae9c6a29769d1485d46f (diff)
Check if an id is a number before attempting to convert it. Closes #150
Diffstat (limited to 'lisp/mastodon-tl.el')
-rw-r--r--lisp/mastodon-tl.el8
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)