This commit is contained in:
2026-08-13 21:42:00 +02:00
parent 82298681af
commit 4a2bd0bd9a

View File

@@ -937,11 +937,11 @@ export default {
const isNsfw = tags.some(t => t.id == 2);
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 restriction check for public uploads (visibility === 0)
// Direct links to public unrated/untagged posts are allowed for guests.
if (!session && !isOwnerOrAdmin && (actitem.visibility || 0) === 0) {
let guestBlocked = false;
if (!isTagged && !cfg.websrv.public_untagged) guestBlocked = true;
else if (isNsfw && !cfg.websrv.public_nsfw) guestBlocked = true;
if (isNsfw && !cfg.websrv.public_nsfw) guestBlocked = true;
else if (isNsfl) guestBlocked = true;
if (guestBlocked) {