From 9a4bf1c641aa0834e3191b854478d2b3262c64c0 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Wed, 28 Sep 2022 19:10:56 +0900 Subject: [PATCH] Update activitypub.extend.php --- extend/activitypub.extend.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extend/activitypub.extend.php b/extend/activitypub.extend.php index e8ee94f..3096dcc 100644 --- a/extend/activitypub.extend.php +++ b/extend/activitypub.extend.php @@ -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")); } } }