diff options
author | marty hiatt <martianhiatus@riseup.net> | 2024-05-28 20:02:16 +0200 |
---|---|---|
committer | marty hiatt <martianhiatus@riseup.net> | 2024-05-28 20:02:16 +0200 |
commit | 355e1814be2496dfad9a23e07c5614b808cff2bd (patch) | |
tree | a4d97d65aa1acca239724e9da3d69db7f6ada5a0 /lisp | |
parent | 0bebd58588720537b5b9d949035d4f25db0b1dbc (diff) |
refactor remote-local domain checks
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/mastodon-tl.el | 10 |
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)))) |