aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-views.el
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus [a t] riseup [d o t] net>2023-10-14 21:37:40 +0200
committermarty hiatt <martianhiatus [a t] riseup [d o t] net>2023-10-14 21:37:40 +0200
commit1e40c8d19faa529efe54ee63e5b2a0f1df103717 (patch)
tree1cd1fec92854e35a27650a90d576c312e2a80dfd /lisp/mastodon-views.el
parent31643d6f63bd3056952d6735466e551ada2f9e3b (diff)
docstrings, autoloads
Diffstat (limited to 'lisp/mastodon-views.el')
-rw-r--r--lisp/mastodon-views.el13
1 files changed, 8 insertions, 5 deletions
diff --git a/lisp/mastodon-views.el b/lisp/mastodon-views.el
index 6e46eb9..e348cae 100644
--- a/lisp/mastodon-views.el
+++ b/lisp/mastodon-views.el
@@ -732,11 +732,13 @@ If INSTANCE is given, use that."
(string-remove-suffix (concat "/@" username)
url))))
-(defun mastodon-views--view-instance-description (&optional user brief instance misskey)
+(defun mastodon-views--view-instance-description
+ (&optional user brief instance misskey)
"View the details of the instance the current post's author is on.
USER means to show the instance details for the logged in user.
BRIEF means to show fewer details.
-INSTANCE is an instance domain name."
+INSTANCE is an instance domain name.
+MISSKEY means the instance is a Misskey or derived server."
(interactive)
(if user
(let ((response (mastodon-http--get-json
@@ -794,15 +796,16 @@ USER, BRIEF, and INSTANCE are all for
&optional misskey)
"Display instance description RESPONSE in a new buffer.
BRIEF means to show fewer details.
-INSTANCE is the instance were are working with."
+INSTANCE is the instance were are working with.
+MISSKEY means the instance is a Misskey or derived server."
(when response
(let* ((domain (url-file-nondirectory instance))
(buf (get-buffer-create
(format "*mastodon-instance-%s*" domain))))
(with-mastodon-buffer buf #'special-mode :other-window
(if misskey
- (mastodon-view--insert-json response)
- (condition-case err
+ (mastodon-views--insert-json response)
+ (condition-case nil
(progn
(when brief
(setq response