From 68f6043d44e65f0516b2374948b51ccc8ab241fc Mon Sep 17 00:00:00 2001 From: zotlabs Date: Mon, 14 Aug 2017 17:34:47 -0700 Subject: new content type --- Zotlabs/Module/Ap_probe.php | 4 ++-- 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'])) : ''); -- cgit v1.2.3