Update activitypub.extend.php

This commit is contained in:
Namhyeon Go 2022-09-28 19:10:56 +09:00 committed by GitHub
parent 7d098d3595
commit 9a4bf1c641
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1206,6 +1206,8 @@ class _GNUBOARD_ActivityPub {
}
public static function shares() {
global $g5;
$bo = get_board_db($_GET['bo_table'], true);
if (!empty($bo['bo_table'])) {
@ -1251,7 +1253,7 @@ class _GNUBOARD_ActivityPub {
}
// 결과 반환
return activitypub_build_collection($items, "Latest shares");
return activitypub_json_encode(activitypub_build_collection($items, "Latest shares"));
}
}
}