diff options
author | Alexander Griffith <griffitaj@gmail.com> | 2018-02-28 12:44:33 -0500 |
---|---|---|
committer | Alexander Griffith <griffitaj@gmail.com> | 2018-02-28 12:44:33 -0500 |
commit | 5a8ede2990c208b1c4059092f21d216203bd0db5 (patch) | |
tree | 7a138c1d835925f197066f008b35c6b1cc386c0b /lisp/mastodon-inspect.el | |
parent | f6f6c08976a414762cd512e52237b143dc0e2f30 (diff) |
Closes #152 and extends the fix for #150 as well as a host of bug fixes
We now kill the http get request buffer once JSON has been extracted.
mastodon-tl--as-string was implemented and replaced any occurrence of number-to-string or int-to-string
Added variable mastodon-tl--display-media-p. By default it is 't but can be made a local buffer variable and set to nil. When nil rather than displaying the media it just provides a link Media::<link>
Fixed checking for faves and boosts, they should now render properly. The return from json-read-from-string for nil is :json-false which evaluates to 't in elisp.
Fixed the format string that gets printed when faving and boosting
Fixed mastodon-tl--thread updating and requesting and changed its behaviour such that it tries to open the original toot thread rather than the boosted thread.
Added tests for both the new mastodon-tl--as-string function and the mastodon-tl--toot-id utility.
enter mastodon mode before defining local buffer variable mastodon-tl--buffer-spec. This fixes some oddities with the local buffer variable.
Diffstat (limited to 'lisp/mastodon-inspect.el')
-rw-r--r-- | lisp/mastodon-inspect.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/mastodon-inspect.el b/lisp/mastodon-inspect.el index a44fb2c..c5b2924 100644 --- a/lisp/mastodon-inspect.el +++ b/lisp/mastodon-inspect.el @@ -55,7 +55,7 @@ (interactive) (mastodon-inspect--dump-json-in-buffer (concat "*mastodon-inspect-toot-" - (int-to-string (mastodon-tl--property 'toot-id)) + (mastodon-tl--as-string (mastodon-tl--property 'toot-id)) "*") (mastodon-tl--property 'toot-json))) |