new content type
This commit is contained in:
parent
ba08555efc
commit
68f6043d44
@ -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;
|
||||
|
@ -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'])) : '');
|
||||
|
Reference in New Issue
Block a user