This commit is contained in:
Huey 2023-02-05 11:08:47 +08:00
parent 9197e7f607
commit ff01444d21
No known key found for this signature in database
GPG key ID: 54C82E718C137231

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;