Update activitypub.extend.php
This commit is contained in:
parent
7691f6f820
commit
142b91685b
|
@ -1325,7 +1325,7 @@ class _GNUBOARD_ActivityPub {
|
||||||
|
|
||||||
$items = array(); // 항목을 담을 배열
|
$items = array(); // 항목을 담을 배열
|
||||||
|
|
||||||
/* // TODO: remove
|
/* // TODO: Remove (Security Reason)
|
||||||
// 게시판인 경우
|
// 게시판인 경우
|
||||||
if (array_key_exists("bo_table", $_GET)) {
|
if (array_key_exists("bo_table", $_GET)) {
|
||||||
$bo = get_board_db($_GET['bo_table'], true);
|
$bo = get_board_db($_GET['bo_table'], true);
|
||||||
|
@ -1372,7 +1372,9 @@ class _GNUBOARD_ActivityPub {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else { // 게시판이 아닌 경우
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
// 최근 활동에서 추출
|
// 최근 활동에서 추출
|
||||||
$sql = "select * from " . $g5['board_new_table'];
|
$sql = "select * from " . $g5['board_new_table'];
|
||||||
$result = sql_query($sql);
|
$result = sql_query($sql);
|
||||||
|
@ -1387,8 +1389,6 @@ class _GNUBOARD_ActivityPub {
|
||||||
array_push($items, activitypub_build_note($content, $object_id, $mb));
|
array_push($items, activitypub_build_note($content, $object_id, $mb));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
// 결과 반환
|
// 결과 반환
|
||||||
return activitypub_json_encode(activitypub_build_collection($items, "Latest shares"));
|
return activitypub_json_encode(activitypub_build_collection($items, "Latest shares"));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user