diff options
Diffstat (limited to 'pages/metadata.inc')
-rw-r--r-- | pages/metadata.inc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pages/metadata.inc b/pages/metadata.inc index f3e48d7..870ca42 100644 --- a/pages/metadata.inc +++ b/pages/metadata.inc @@ -77,6 +77,12 @@ if ($member === null) { })); } + if (isset($_GET["sexfriends"])) { + $toUpdate["sexfriends"] = array_values(array_filter(array_map(function ($i) { return trim($i); }, explode(",", $_GET["sexfriends"])), function ($i) { + return !!preg_match("/^(ynmuc|gdapd)\/[a-z]{5}$/m", $i); + })); + } + if (isset($_GET["sisters"])) { $toUpdate["sisters"] = array_values(array_filter(array_map(function ($i) { return trim($i); }, explode(",", $_GET["sisters"])), function ($i) { return !!preg_match("/^(ynmuc|gdapd)\/[a-z]{5}$/m", $i); @@ -124,6 +130,7 @@ if ($member === null) { "bitset" => $metadata["bitset"] ?? 0, "regression" => $metadata["regression"] ?? null, "median" => $metadata["median"] ?? null, + "sexfriends" => $metadata["sexfriends"] ?? [], "marefriends" => $metadata["marefriends"] ?? [], "sisters" => $metadata["sisters"] ?? [], "caretakers" => $metadata["caretakers"] ?? [], |