summaryrefslogtreecommitdiff
path: root/pages/api
diff options
context:
space:
mode:
authorRaindropsSys <raindrops@equestria.dev>2024-02-29 20:30:14 +0100
committerRaindropsSys <raindrops@equestria.dev>2024-02-29 20:30:14 +0100
commit96eb5745754824a2a75698af4b60cc0a84c890ea (patch)
tree8b39f604d48f3fd49b3b8419033bf54a757d974e /pages/api
parent430245dc8511ed755081ce44e96b8b7dce7835bf (diff)
downloadpluralconnect-96eb5745754824a2a75698af4b60cc0a84c890ea.tar.gz
pluralconnect-96eb5745754824a2a75698af4b60cc0a84c890ea.tar.bz2
pluralconnect-96eb5745754824a2a75698af4b60cc0a84c890ea.zip
Updated 9 files (automated)
Diffstat (limited to 'pages/api')
-rw-r--r--pages/api/badger.php2
-rw-r--r--pages/api/violette.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/pages/api/badger.php b/pages/api/badger.php
index ee7bfa7..d54e69f 100644
--- a/pages/api/badger.php
+++ b/pages/api/badger.php
@@ -47,6 +47,6 @@ die(json_encode(array_map(function ($i) {
default => $i["_metadata"]["species"][0] . "_" . $i["_metadata"]["robot"]
},
"age" => getAge($i["_metadata"]),
- "avatar" => "https://ponies.equestria.horse" . getAsset($i["system"], $i["id"], "heads")
+ "avatar" => "https://ponycule.p.equestria.dev" . getAsset($i["system"], $i["id"], "heads")
];
}, $list), JSON_PRETTY_PRINT)); \ No newline at end of file
diff --git a/pages/api/violette.php b/pages/api/violette.php
index c1e3da8..1f6f4f0 100644
--- a/pages/api/violette.php
+++ b/pages/api/violette.php
@@ -12,7 +12,7 @@ $list = scoreOrder(json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/i
$data["count"] = count($list);
$data["ponies"] = array_values(array_filter(array_map(function ($i) {
return [
- "url" => "https://ponies.equestria.horse" . getAsset("gdapd", $i["id"] ?? "", "heads"),
+ "url" => "https://ponycule.p.equestria.dev" . getAsset("gdapd", $i["id"] ?? "", "heads"),
"label" => $i["display_name"] ?? $i["name"]
];
}, $list), function ($i) {