1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-02 10:56:25 -07:00

fixs post hiding

This commit is contained in:
KAE-Ame 2024-05-24 00:33:43 +10:00 committed by GitHub
parent 3cd4539738
commit 5900527843
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -39,7 +39,7 @@ export function setPostVisibility(id: number|string, visibility: boolean, onComp
$backlink.text(id);
const newHidden = [];
for(const sID of hiddenStorage) {
if(sID !== id && newHidden.indexOf(sID) === -1) newHidden.push(sID);
if(sID !== String(id) && newHidden.indexOf(sID) === -1) newHidden.push(sID);
}
setStorageVal("hiddenposts", newHidden.join(","));
} else {
@ -84,4 +84,4 @@ $(() => {
setThreadVisibility(id, false);
setPostVisibility(id, false);
}
});
});