From 755dbc2909c61bcfc1306051f08e74b17bb86111 Mon Sep 17 00:00:00 2001 From: Austin Huang Date: Sat, 18 Mar 2023 16:17:33 -0400 Subject: [PATCH] Mastodon: allow interacting on unlisted posts --- src/content_script/mastodonInject.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content_script/mastodonInject.js b/src/content_script/mastodonInject.js index 6f2dee7..0d05fe0 100644 --- a/src/content_script/mastodonInject.js +++ b/src/content_script/mastodonInject.js @@ -23,7 +23,7 @@ function onClickFollow(event) { function onClickInteract(event) { event.stopPropagation(); event.preventDefault(); - const articleElement = event.target.closest(".status.status-public[data-id]"); + const articleElement = event.target.closest(".status.status-public[data-id], .status.status-unlisted[data-id]"); const getId = () => { const rawId = articleElement.getAttribute("data-id"); return rawId.slice(0, 2) === "f-" ? rawId.slice(2) : rawId;