diff options
author | zotlabs <mike@macgirvin.com> | 2018-07-01 19:12:45 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-07-01 19:12:45 -0700 |
commit | 8c26db63ddf449a033e488b5d95af83fe08bdb2e (patch) | |
tree | 1078d47267942e236b320dc452766cd62938e24d /Zotlabs | |
parent | 5d7d30f7898171f0a7bd687bf4888695b2dd8af3 (diff) | |
download | volse-hubzilla-8c26db63ddf449a033e488b5d95af83fe08bdb2e.tar.gz volse-hubzilla-8c26db63ddf449a033e488b5d95af83fe08bdb2e.tar.bz2 volse-hubzilla-8c26db63ddf449a033e488b5d95af83fe08bdb2e.zip |
some changes to support plume
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Lib/ActivityStreams.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Zotlabs/Lib/ActivityStreams.php b/Zotlabs/Lib/ActivityStreams.php index 3a99e7b49..37e717f58 100644 --- a/Zotlabs/Lib/ActivityStreams.php +++ b/Zotlabs/Lib/ActivityStreams.php @@ -36,6 +36,7 @@ class ActivityStreams { $this->raw = $string; $this->data = json_decode($string, true); + if($this->data) { $this->valid = true; } @@ -206,7 +207,7 @@ class ActivityStreams { } $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']) return json_decode($x['body'], true); |