Determining location with restrictions disabled, cleaned up.

This commit is contained in:
2026-07-23 05:34:28 +02:00
parent 4c48700086
commit 77b27a56f7
28 changed files with 590 additions and 71 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
import { pageContext } from '../renderer/usePageContext.js';
function getBasePath(media, options) {
if (pageContext.restriction) {
if (pageContext.geo.restriction) {
return pageContext.env.media.assetPath;
}
@@ -17,11 +17,11 @@ function getBasePath(media, options) {
}
function getFilename(media, type, options) {
if (pageContext.restriction && type && !options?.original) {
if (pageContext.geo.restriction && type && !options?.original) {
return media.sfw?.[type];
}
if (pageContext.restriction) {
if (pageContext.geo.restriction) {
return media.sfw?.path;
}