mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 13:35:12 +00:00
some changes to support plume
This commit is contained in:
parent
5d7d30f789
commit
8c26db63dd
1 changed files with 2 additions and 1 deletions
|
@ -36,6 +36,7 @@ class ActivityStreams {
|
||||||
|
|
||||||
$this->raw = $string;
|
$this->raw = $string;
|
||||||
$this->data = json_decode($string, true);
|
$this->data = json_decode($string, true);
|
||||||
|
|
||||||
if($this->data) {
|
if($this->data) {
|
||||||
$this->valid = true;
|
$this->valid = true;
|
||||||
}
|
}
|
||||||
|
@ -206,7 +207,7 @@ class ActivityStreams {
|
||||||
}
|
}
|
||||||
|
|
||||||
$x = z_fetch_url($url, true, $redirects,
|
$x = z_fetch_url($url, true, $redirects,
|
||||||
['headers' => [ 'Accept: application/ld+json; profile="https://www.w3.org/ns/activitystreams", application/activity+json' ]]);
|
['headers' => [ 'Accept: application/activity+json, application/ld+json; profile="https://www.w3.org/ns/activitystreams"' ]]);
|
||||||
if($x['success'])
|
if($x['success'])
|
||||||
return json_decode($x['body'], true);
|
return json_decode($x['body'], true);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue