diff options
author | zotlabs <mike@macgirvin.com> | 2017-08-14 17:34:47 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-08-14 17:34:47 -0700 |
commit | 68f6043d44e65f0516b2374948b51ccc8ab241fc (patch) | |
tree | 412b8020dcc746c408b3ac3f8d40180af2e00244 | |
parent | ba08555efc66e8b55f62ea74aa5e9fd403f85124 (diff) | |
download | volse-hubzilla-68f6043d44e65f0516b2374948b51ccc8ab241fc.tar.gz volse-hubzilla-68f6043d44e65f0516b2374948b51ccc8ab241fc.tar.bz2 volse-hubzilla-68f6043d44e65f0516b2374948b51ccc8ab241fc.zip |
new content type
-rw-r--r-- | Zotlabs/Module/Ap_probe.php | 4 | ||||
-rwxr-xr-x | include/items.php | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/Zotlabs/Module/Ap_probe.php b/Zotlabs/Module/Ap_probe.php index 29629a8eb..735a2d5a9 100644 --- a/Zotlabs/Module/Ap_probe.php +++ b/Zotlabs/Module/Ap_probe.php @@ -21,10 +21,10 @@ class Ap_probe extends \Zotlabs\Web\Controller { $addr = $_GET['addr']; if($_GET['magenv']) { - $headers = 'Accept: application/magic-envelope+json, application/ld+json; profile="https://www.w3.org/ns/activitystreams"'; + $headers = 'Accept: application/magic-envelope+json, application/activity+json, application/ld+json; profile="https://www.w3.org/ns/activitystreams"'; } else { - $headers = 'Accept: application/ld+json; profile="https://www.w3.org/ns/activitystreams"'; + $headers = 'Accept: application/activity+json, application/ld+json; profile="https://www.w3.org/ns/activitystreams"'; } $redirects = 0; diff --git a/include/items.php b/include/items.php index 5a0ca01c6..e7bec7f20 100755 --- a/include/items.php +++ b/include/items.php @@ -1600,7 +1600,6 @@ function item_store($arr, $allow_exec = false, $deliver = true) { $arr['aid'] = ((x($arr,'aid')) ? intval($arr['aid']) : 0); $arr['mid'] = ((x($arr,'mid')) ? notags(trim($arr['mid'])) : random_string()); $arr['revision'] = ((x($arr,'revision') && intval($arr['revision']) > 0) ? intval($arr['revision']) : 0); -logger('revision: ' . $arr['revision']); $arr['author_xchan'] = ((x($arr,'author_xchan')) ? notags(trim($arr['author_xchan'])) : ''); $arr['owner_xchan'] = ((x($arr,'owner_xchan')) ? notags(trim($arr['owner_xchan'])) : ''); |