tgre
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user