Merge pull request #98 from hueyy/fix/acting_on_remote_boosts

Fix: acting on remote boosts should now work
This commit is contained in:
rugk 2023-02-09 19:58:37 +01:00 committed by GitHub
commit d1c09e501a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,7 +23,7 @@ function onClickFollow(event) {
function onClickInteract(event) {
event.stopPropagation();
event.preventDefault();
const articleElement = event.target.closest("article[data-id]");
const articleElement = event.target.closest(".status.status-public[data-id]");
const getId = () => {
const rawId = articleElement.getAttribute("data-id");
return rawId.slice(0, 2) === "f-" ? rawId.slice(2) : rawId;