From 95814b7b7c06166023af8716efa90eb29a2297b0 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Wed, 28 Sep 2022 17:51:45 +0900 Subject: [PATCH] Update activitypub.extend.php --- extend/activitypub.extend.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/extend/activitypub.extend.php b/extend/activitypub.extend.php index 8e449b8..e64390a 100644 --- a/extend/activitypub.extend.php +++ b/extend/activitypub.extend.php @@ -946,7 +946,7 @@ class _GNUBOARD_ActivityPub { // 컨텐츠 변수 정의 $content = ''; - + // 컨텐츠 처리 if (!empty($data['type'])) { // 정보 불러오기 @@ -1202,7 +1202,15 @@ class _GNUBOARD_ActivityPub { } public static function shares() { - // TODO + $bo = get_board_db($_GET['bo_table'], true); + + switch($bo['bo_table']) { + case ACTIVITYPUB_G5_BOARDNAME: + return self::inbox(); // 액티비티를 저장하는 테이블인 경우 inbox와 동일하게 취급 + + default: + return array(); // TODO + } } public static function close() {