diff options
author | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2023-04-05 11:31:11 +0200 |
---|---|---|
committer | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2023-04-05 12:57:32 +0200 |
commit | f53847ef151bf841a2cbdaad556b334f3bba2986 (patch) | |
tree | f2acde64dfae11a35ccbaa2bd189b9b1742180dd /lisp | |
parent | 9cd79997e072787ea2eb21a25dc2868b42ee3da2 (diff) |
view instance: only look for property-json in profile buf.
prevents the loading of older toots if called on last toot in buffer.
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/mastodon-views.el | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/mastodon-views.el b/lisp/mastodon-views.el index 9a25276..5576b14 100644 --- a/lisp/mastodon-views.el +++ b/lisp/mastodon-views.el @@ -747,10 +747,14 @@ INSTANCE is an instance domain name." ;; be looking at toots/boosts/users in a profile buffer. ;; profile-json works as a defacto test for if point is on the ;; profile details at the top of a profile buffer. - (url (if (mastodon-tl--property 'profile-json) + (url (if (and (mastodon-tl--profile-buffer-p) + ;; only call this in profile buffers: + (mastodon-tl--property 'profile-json)) (alist-get 'url toot) ; profile description (alist-get 'url account))) - (username (if (mastodon-tl--property 'profile-json) + (username (if (and (mastodon-tl--profile-buffer-p) + ;; only call this in profile buffers: + (mastodon-tl--property 'profile-json)) (alist-get 'username toot) ;; profile (alist-get 'username account))) (instance (cond (instance |