aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus [a t] riseup [d o t] net>2023-06-03 12:44:33 +0200
committermarty hiatt <martianhiatus [a t] riseup [d o t] net>2023-06-03 12:46:18 +0200
commit17ef1093bc0c3f1ba8b842df7a698b9c41161c6e (patch)
tree993b5ef3437ef6741872fef49d0944cec84853ac
parentf0670d18c38051b6b950d6569aa61c9f54f35df8 (diff)
fix get user handles profile note test. FIX #472.
this way, if in profile note, we just return profile owner, else we might be on a toot in a profile, and so just proceed normally.
-rw-r--r--lisp/mastodon-tl.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el
index c791f7e..6c1a771 100644
--- a/lisp/mastodon-tl.el
+++ b/lisp/mastodon-tl.el
@@ -1908,9 +1908,10 @@ LANGS is the accumulated array param alist if we re-run recursively."
;; fetch 'toot-json:
(list (alist-get 'acct
(mastodon-tl--property 'toot-json :no-move))))
- ;; profile view, no toots
+ ;; profile view, point in profile details, poss no toots
;; needed for e.g. gup.pe groups which show no toots publically:
- ((mastodon-tl--profile-buffer-p)
+ ((and (mastodon-tl--profile-buffer-p)
+ (get-text-property (point) 'profile-json))
(list (alist-get 'acct
(mastodon-profile--profile-json))))
(t