js/lcn/classes.js: s/isRecentsPage/isModRecentsPage/

This commit is contained in:
Jon 2024-02-20 18:38:37 +00:00 committed by towards-a-new-leftypol
parent 257626dcfc
commit 45727f6a51
1 changed files with 1 additions and 1 deletions

View File

@ -274,7 +274,7 @@ $().ready(() => {
// XXX: May be a cleaner way to do this but this should be fine for now.
for (const clazz of clazzes) { void clazz.all(); }
$(document).on("new_post", (e, post) => {
if (LCNSite.INSTANCE.isRecentsPage()) {
if (LCNSite.INSTANCE.isModRecentsPage()) {
void LCNPostWrapper.all()
} else {
void LCNPostContainer.all()