tgre
This commit is contained in:
@@ -937,11 +937,11 @@ export default {
|
|||||||
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;
|
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) {
|
if (!session && !isOwnerOrAdmin && (actitem.visibility || 0) === 0) {
|
||||||
let guestBlocked = false;
|
let guestBlocked = false;
|
||||||
if (!isTagged && !cfg.websrv.public_untagged) guestBlocked = true;
|
if (isNsfw && !cfg.websrv.public_nsfw) guestBlocked = true;
|
||||||
else if (isNsfw && !cfg.websrv.public_nsfw) guestBlocked = true;
|
|
||||||
else if (isNsfl) guestBlocked = true;
|
else if (isNsfl) guestBlocked = true;
|
||||||
|
|
||||||
if (guestBlocked) {
|
if (guestBlocked) {
|
||||||
|
|||||||
Reference in New Issue
Block a user