diff options
author | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2022-08-20 13:31:58 +0200 |
---|---|---|
committer | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2022-08-20 13:31:58 +0200 |
commit | 07953cabfc08fe43552016185525d1b34cd05769 (patch) | |
tree | b2ac5bf3e06e6467b84302575663eaf2631bd93c /lisp | |
parent | 6ec8587f8ad140fd8c79aefbb25d7cabbe54a879 (diff) |
skip toot-json check on own profile load
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/mastodon-profile.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/mastodon-profile.el b/lisp/mastodon-profile.el index cfea26c..ae244d8 100644 --- a/lisp/mastodon-profile.el +++ b/lisp/mastodon-profile.el @@ -416,7 +416,10 @@ If toot is a boost, opens the profile of the booster." user-handles nil ; predicate 'confirm))))) - (if (not (get-text-property (point) 'toot-json)) + (if (not (or + ;; own profile has no need for toot-json test: + (equal user-handle (mastodon-auth--get-account-name)) + (get-text-property (point) 'toot-json))) (message "Looks like there's no toot or user at point?") (let ((account (mastodon-profile--lookup-account-in-status user-handle (mastodon-profile--toot-json)))) |