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') + ]; + } +}