mirror of
https://github.com/Eggbertx/gochan.git
synced 2025-08-02 15:06:23 -07:00
fixs post hiding
This commit is contained in:
parent
3cd4539738
commit
5900527843
1 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@ export function setPostVisibility(id: number|string, visibility: boolean, onComp
|
||||||
$backlink.text(id);
|
$backlink.text(id);
|
||||||
const newHidden = [];
|
const newHidden = [];
|
||||||
for(const sID of hiddenStorage) {
|
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(","));
|
setStorageVal("hiddenposts", newHidden.join(","));
|
||||||
} else {
|
} else {
|
||||||
|
@ -84,4 +84,4 @@ $(() => {
|
||||||
setThreadVisibility(id, false);
|
setThreadVisibility(id, false);
|
||||||
setPostVisibility(id, false);
|
setPostVisibility(id, false);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue