Showing curated campaigns on tags page.
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
export default function consentHandler(req, res, next) {
|
||||
const redirect = req.headers.referer && new URL(req.headers.referer).searchParams.get('redirect');
|
||||
|
||||
if (req.path.includes('/api')) {
|
||||
next();
|
||||
return;
|
||||
}
|
||||
|
||||
if (Object.hasOwn(req.query, 'lgbt')) {
|
||||
const lgbtFilters = (req.tagFilter || []).filter((tag) => !['gay', 'bisexual', 'transsexual'].includes(tag));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user