Mastodon: allow interacting on unlisted posts
This commit is contained in:
parent
b2f52a3365
commit
755dbc2909
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue