From 4c7bde1400820f36caf8b2a5374007384c3018f3 Mon Sep 17 00:00:00 2001
From: winter
Date: Mon, 9 Dec 2024 21:31:54 +0000
Subject: rename to Digitigrade / PawPub
:3
---
routes/actor.php | 8 ++++----
routes/homepage.php | 2 +-
routes/nodeinfo.php | 12 ++++++------
routes/note.php | 6 +++---
routes/webfinger.php | 10 +++++-----
5 files changed, 19 insertions(+), 19 deletions(-)
(limited to 'routes')
diff --git a/routes/actor.php b/routes/actor.php
index 5879538..021b9f8 100644
--- a/routes/actor.php
+++ b/routes/actor.php
@@ -1,9 +1,9 @@
mount('/user/:handle', function (array $args) {
$actor = Actor::findLocalByHandle($args['handle']);
diff --git a/routes/homepage.php b/routes/homepage.php
index ea5d31b..5fbc102 100644
--- a/routes/homepage.php
+++ b/routes/homepage.php
@@ -1,6 +1,6 @@
mount('/', function (array $args) {
echo '
home
';
diff --git a/routes/nodeinfo.php b/routes/nodeinfo.php
index e85bca1..c29ac0a 100644
--- a/routes/nodeinfo.php
+++ b/routes/nodeinfo.php
@@ -1,6 +1,6 @@
mount('/.well-known/nodeinfo', function (array $args) {
json_response([
@@ -17,10 +17,10 @@ Router::getInstance()->mount('/nodeinfo/2.1', function (array $args) {
json_response([
'version' => '2.1',
'software' => [
- 'name' => 'WPF test server',
+ 'name' => 'Digitigrade',
'version' => '0.1.0'
],
- 'protocols' => ['wpf'],
+ 'protocols' => ['pawpub'],
'services' => [
'inbound' => [],
'outbound' => []
@@ -32,9 +32,9 @@ Router::getInstance()->mount('/nodeinfo/2.1', function (array $args) {
]
],
'metadata' => [
- 'nodeName' => "winter's pawsome test server",
- 'nodeDescription' => 'written in php i dunno',
- 'wpf' => [
+ 'nodeName' => 'A Digitigrade server',
+ 'nodeDescription' => 'nodeinfo is hardcoded for now',
+ 'pawpub' => [
'extensions' => [
// 'https://whatever.example/ext/meow',
],
diff --git a/routes/note.php b/routes/note.php
index 65b9313..be7eb25 100644
--- a/routes/note.php
+++ b/routes/note.php
@@ -1,8 +1,8 @@
mount('/post/:id', function (array $args) {
$note = Note::find($args['id']);
diff --git a/routes/webfinger.php b/routes/webfinger.php
index db29e73..cfccb22 100644
--- a/routes/webfinger.php
+++ b/routes/webfinger.php
@@ -1,10 +1,10 @@
mount('/.well-known/webfinger', function (array $args) {
if (!isset($_GET['resource'])) {
--
cgit v1.3