aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/mastodon-profile.el10
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/mastodon-profile.el b/lisp/mastodon-profile.el
index ff729f0..054f6e5 100644
--- a/lisp/mastodon-profile.el
+++ b/lisp/mastodon-profile.el
@@ -461,10 +461,12 @@ Returns an alist."
(mastodon-profile--account-field
account 'statuses_count)))
(relationships (mastodon-profile--relationships-get id))
- (followed-by-you (alist-get 'following
- (aref relationships 0)))
- (follows-you (alist-get 'followed_by
- (aref relationships 0)))
+ (followed-by-you (when (not (seq-empty-p relationships))
+ (alist-get 'following
+ (aref relationships 0))))
+ (follows-you (when (not (seq-empty-p relationships))
+ (alist-get 'followed_by
+ (aref relationships 0))))
(followsp (or (equal follows-you 't) (equal followed-by-you 't)))
(fields (mastodon-profile--fields-get account))
(pinned (mastodon-profile--get-statuses-pinned account)))