Now sending does finally work - and some AP standards are improved as well

This commit is contained in:
Michael
2018-09-16 20:12:48 +00:00
parent e4d28629e4
commit 699a4140f9
5 changed files with 27 additions and 20 deletions

View File

@@ -50,7 +50,7 @@ function profile_init(App $a)
DFRN::autoRedir($a, $which);
}
if (stristr(defaults($_SERVER, 'HTTP_ACCEPT', ''), 'application/activity+json')) {
if (ActivityPub::isRequest()) {
$user = DBA::selectFirst('user', ['uid'], ['nickname' => $which]);
if ($user['uid'] == 180) {
$data = ActivityPub::profile($user['uid']);