add: pinned posts

This commit is contained in:
trisua 2025-04-03 12:43:36 -04:00
parent e52733b00c
commit eea3d08e1f
10 changed files with 324 additions and 55 deletions

View file

@ -736,12 +736,17 @@ media_theme_pref();
const self = reg_ns("ui");
self.define("refresh_container", (_, element, keep) => {
if (keep.length === 0) {
element.innerHTML = "";
return;
}
for (const child of element.children) {
if (keep.includes(child.getAttribute("ui_ident"))) {
continue;
}
child.remove();
child.outerHTML = "";
}
});