diff --git a/README.md b/README.md index 168e498..1bfbf3b 100644 --- a/README.md +++ b/README.md @@ -168,12 +168,28 @@ Restart nginx: sudo systemctl restart nginx ``` -And finally, link the storage to the public folder: +Now link the storage to the public folder: ```bash php artisan storage:link ``` +And finally, we need to create a service to handle the jobs that OurSpace needs to run. So run something `emacs /lib/systemd/system/ourspace-queue.service` and add the following content: + +```ini +[Unit] +Description=OurSpace queue worker + +[Service] +User=www-data +Group=www-data +Restart=on-failure +ExecStart=/usr/bin/php /var/www/html/ourspace/artisan queue:work --daemon --env=production + +[Install] +WantedBy=multi-user.target +``` + ## TODO: For a list of planned features and improvements, please refer to the [TODO](TODO) file. diff --git a/app/Types/TypeActor.php b/app/Types/TypeActor.php index 85ec99d..65bab90 100644 --- a/app/Types/TypeActor.php +++ b/app/Types/TypeActor.php @@ -108,6 +108,13 @@ class TypeActor { if ($actor->user) { + // appent to @context + $response ["@context"][] = [ + "schema" => "http://schema.org#", + "PropertyValue" => "schema:PropertyValue", + "value" => "schema:value" + ]; + $response ["attachment"] = [ [ "type" => "PropertyValue",