aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-tl.el
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus@riseup.net>2024-05-28 20:02:16 +0200
committermarty hiatt <martianhiatus@riseup.net>2024-05-28 20:02:16 +0200
commit355e1814be2496dfad9a23e07c5614b808cff2bd (patch)
treea4d97d65aa1acca239724e9da3d69db7f6ada5a0 /lisp/mastodon-tl.el
parent0bebd58588720537b5b9d949035d4f25db0b1dbc (diff)
refactor remote-local domain checks
Diffstat (limited to 'lisp/mastodon-tl.el')
-rw-r--r--lisp/mastodon-tl.el10
1 files changed, 3 insertions, 7 deletions
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el
index a33be2e..eba7146 100644
--- a/lisp/mastodon-tl.el
+++ b/lisp/mastodon-tl.el
@@ -488,13 +488,9 @@ instance, which you can do with
(mastodon-http--api "instance/peers")))))
;; condition-case doesn't work here, so i added basic error handling to
;; `mastodon-tl--init*' instead
- (if (not known)
- (when (y-or-n-p
- "Domain appears unknown to your instance. Proceed?")
- ;; TODO: refactor these calls:
- (mastodon-tl--init buf
- "timelines/public" 'mastodon-tl--timeline nil
- params nil domain))
+ (when (or known
+ (y-or-n-p
+ "Domain appears unknown to your instance. Proceed?"))
(mastodon-tl--init buf
"timelines/public" 'mastodon-tl--timeline nil
params nil domain))))