From 312386bf982f559db2afd799b13a8ab58926b682 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Wed, 11 Sep 2024 05:43:17 -0600 Subject: [PATCH 1/2] Update DiscoverActor, fix formatting --- app/Util/ActivityPub/DiscoverActor.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/Util/ActivityPub/DiscoverActor.php b/app/Util/ActivityPub/DiscoverActor.php index 61023900e..6680d944d 100644 --- a/app/Util/ActivityPub/DiscoverActor.php +++ b/app/Util/ActivityPub/DiscoverActor.php @@ -7,6 +7,7 @@ use Zttp\Zttp; class DiscoverActor { protected $url; + protected $response; public function __construct($url) @@ -17,9 +18,9 @@ class DiscoverActor public function fetch() { $res = Zttp::withHeaders([ - 'Accept' => 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"', - 'User-Agent' => 'PixelfedBot - https://pixelfed.org', - ])->get($this->url); + 'Accept' => 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"', + 'User-Agent' => 'PixelfedBot - https://pixelfed.org', + ])->get($this->url); $this->response = $res->body(); return $this; @@ -40,7 +41,7 @@ class DiscoverActor $this->fetch(); $res = $this->getResponse(); - if (empty($res) || !in_array('type', $res) || $res['type'] !== 'Person') { + if (empty($res) || ! in_array('type', $res) || $res['type'] !== 'Person') { throw new \Exception('Invalid Actor Object'); } From 4cc576e1216724b01e01f9f930012294980cfc51 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Fri, 13 Sep 2024 00:07:03 -0600 Subject: [PATCH 2/2] Update layout, add og:logo --- resources/views/layouts/app.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php index 168992aaf..7cc95981f 100644 --- a/resources/views/layouts/app.blade.php +++ b/resources/views/layouts/app.blade.php @@ -11,7 +11,7 @@ {{ $title ?? config_cache('app.name') }} - + @@ -72,7 +72,7 @@ {{ $title ?? config_cache('app.name', 'Pixelfed') }} - +