aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-profile.el
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus@riseup.net>2024-08-22 12:09:20 +0200
committermarty hiatt <martianhiatus@riseup.net>2024-08-22 12:09:20 +0200
commit8b6e7a2312556552fd26f81d7ebafc94e3ef1316 (patch)
tree1a2e2bf8188108f8102d2c6ac90ccfbf1ae057a5 /lisp/mastodon-profile.el
parent4c5f5ef110a0a1dbf2044106c11d3cae975f7d73 (diff)
parentbeeb8f3b2ebe25e8e3fb92e6f030cec39b818cec (diff)
Merge branch 'equal' into develop
Diffstat (limited to 'lisp/mastodon-profile.el')
-rw-r--r--lisp/mastodon-profile.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/mastodon-profile.el b/lisp/mastodon-profile.el
index 5f33ce2..6410591 100644
--- a/lisp/mastodon-profile.el
+++ b/lisp/mastodon-profile.el
@@ -592,7 +592,7 @@ FIELDS means provide a fields vector fetched by other means."
"T if you have any relationship with the accounts in LIST."
(let (result)
(dolist (x list result)
- (when (not (equal :json-false x))
+ (when (not (eq :json-false x))
(setq result x)))))
(defun mastodon-profile--render-roles (roles)
@@ -735,7 +735,7 @@ MAX-ID is a flag to include the max_id pagination parameter."
(setq mastodon-tl--update-point (point))
(mastodon-media--inline-images (point-min) (point))
;; insert pinned toots first
- (when (and pinned (equal endpoint-type "statuses"))
+ (when (and pinned (string= endpoint-type "statuses"))
(mastodon-profile--insert-statuses-pinned pinned)
(setq mastodon-tl--update-point (point))) ; updates after pinned toots
(funcall update-function json))
@@ -767,7 +767,7 @@ MAX-ID is a flag to include the max_id pagination parameter."
"Return a avatar image from ACCOUNT.
IMG-TYPE is the JSON key from the account data."
(let ((img (alist-get img-type account)))
- (unless (equal img "/avatars/original/missing.png")
+ (unless (string= img "/avatars/original/missing.png")
(mastodon-media--get-media-link-rendering img))))
(defun mastodon-profile--show-user (user-handle)
@@ -784,7 +784,7 @@ IMG-TYPE is the JSON key from the account data."
nil ; predicate
'confirm)))))
(if (not (or ; own profile has no need for item-json test:
- (equal user-handle (mastodon-auth--get-account-name))
+ (string= user-handle (mastodon-auth--get-account-name))
(mastodon-tl--profile-buffer-p)
(mastodon-tl--property 'item-json :no-move)))
(user-error "Looks like there's no toot or user at point?")