From aafd023c5a4139b2440ce606770a5060abfd4c59 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 17 Jan 2021 01:36:59 -0700 Subject: [PATCH] Add InstanceActor model --- app/Models/InstanceActor.php | 41 ++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 app/Models/InstanceActor.php diff --git a/app/Models/InstanceActor.php b/app/Models/InstanceActor.php new file mode 100644 index 000000000..fad1fc86b --- /dev/null +++ b/app/Models/InstanceActor.php @@ -0,0 +1,41 @@ + 'https://www.w3.org/ns/activitystreams', + 'id' => $this->permalink(), + 'type' => 'Application', + 'inbox' => $this->permalink('/inbox'), + 'outbox' => $this->permalink('/outbox'), + 'preferredUsername' => config('pixelfed.domain.app'), + 'publicKey' => [ + 'id' => $this->permalink('#main-key'), + 'owner' => $this->permalink(), + 'publicKeyPem' => $this->public_key + ], + 'manuallyApprovesFollowers' => true, + 'url' => route('help.instance-actor') + ]; + } +}