Update activitypub.extend.php

This commit is contained in:
Namhyeon Go 2023-02-16 17:13:30 +09:00 committed by GitHub
parent 7691f6f820
commit 142b91685b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"));