mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-09 16:24:51 +00:00
commit
34b4167aa0
2 changed files with 7 additions and 6 deletions
|
@ -7,6 +7,7 @@ use Zttp\Zttp;
|
|||
class DiscoverActor
|
||||
{
|
||||
protected $url;
|
||||
|
||||
protected $response;
|
||||
|
||||
public function __construct($url)
|
||||
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
<title>{{ $title ?? config_cache('app.name') }}</title>
|
||||
<link rel="manifest" href="{{url('/manifest.json')}}">
|
||||
|
||||
<meta property="og:logo" content="{{ url('/img/pixelfed-icon-color.png')}}" />
|
||||
<meta property="og:site_name" content="Pixelfed">
|
||||
<meta property="og:title" content="{{ $ogTitle ?? $title ?? config_cache('app.name') }}">
|
||||
<meta property="og:type" content="{{ $ogType ?? 'article' }}">
|
||||
|
@ -72,7 +72,7 @@
|
|||
|
||||
<title>{{ $title ?? config_cache('app.name', 'Pixelfed') }}</title>
|
||||
<link rel="manifest" href="/manifest.json">
|
||||
|
||||
<meta property="og:logo" content="{{ url('/img/pixelfed-icon-color.png')}}" />
|
||||
<meta property="og:site_name" content="Pixelfed">
|
||||
<meta property="og:title" content="{{ $ogTitle ?? $title ?? config_cache('app.name', 'pixelfed') }}">
|
||||
<meta property="og:type" content="{{ $ogType ?? 'article' }}">
|
||||
|
|
Loading…
Reference in a new issue