mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +00:00
Update AP Helpers
This commit is contained in:
parent
23cd89da4c
commit
f54409fdf3
1 changed files with 3 additions and 3 deletions
|
@ -181,7 +181,7 @@ class Helpers {
|
||||||
public static function zttpUserAgent()
|
public static function zttpUserAgent()
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'Accept' => 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"',
|
'Accept' => 'application/activity+json',
|
||||||
'User-Agent' => 'PixelfedBot - https://pixelfed.org',
|
'User-Agent' => 'PixelfedBot - https://pixelfed.org',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -280,8 +280,8 @@ class Helpers {
|
||||||
$unlisted = false;
|
$unlisted = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$cw = config('costar.domain.cw');
|
$cwDomains = config('costar.domain.cw');
|
||||||
if(in_array(parse_url($url, PHP_URL_HOST), $cw) == true) {
|
if(in_array(parse_url($url, PHP_URL_HOST), $cwDomains) == true) {
|
||||||
$cw = true;
|
$cw = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue