This commit is contained in:
2026-08-09 03:21:56 +02:00
parent f1611be50a
commit 3e20394c85

View File

@@ -899,6 +899,7 @@ export default {
const isNsfl = cfg.enable_nsfl && tags.some(t => t.id == nsfl_id); const isNsfl = cfg.enable_nsfl && tags.some(t => t.id == nsfl_id);
const isNsfw = tags.some(t => t.id == 2); const isNsfw = tags.some(t => t.id == 2);
const isSfw = tags.some(t => t.id == 1); const isSfw = tags.some(t => t.id == 1);
const isTagged = tags.length > 0;
// Guest rating & untagged restriction check for public uploads (visibility === 0) // Guest rating & untagged restriction check for public uploads (visibility === 0)
if (!session && !isOwnerOrAdmin && (actitem.visibility || 0) === 0) { if (!session && !isOwnerOrAdmin && (actitem.visibility || 0) === 0) {
let guestBlocked = false; let guestBlocked = false;