AP is enabled for all users

This commit is contained in:
Michael 2018-09-22 23:49:27 +00:00
commit a56565fa99
6 changed files with 14 additions and 15 deletions

View file

@ -79,7 +79,7 @@ function display_init(App $a)
if (ActivityPub::isRequest()) {
$wall_item = Item::selectFirst(['id', 'uid'], ['guid' => $item['guid'], 'wall' => true]);
if ($wall_item['uid'] == 180) {
if (DBA::isResult($wall_item)) {
$data = ActivityPub::createObjectFromItemID($wall_item['id']);
echo json_encode($data);
exit();