From e45083ead59ef3d048af0e6226fb42b50dc236e4 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Thu, 30 Jun 2022 17:26:53 +0900 Subject: [PATCH] Update activitiypub.extend.php --- extend/activitiypub.extend.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extend/activitiypub.extend.php b/extend/activitiypub.extend.php index e4b4331..b59fdf4 100644 --- a/extend/activitiypub.extend.php +++ b/extend/activitiypub.extend.php @@ -137,7 +137,7 @@ function activitypub_send_to_inbox($object) { // 외부로 보낼 전문 생성 $context = array( - "@context" => "https://www.w3.org/ns/activitystreams", + "@context" => NAMESPACE_ACTIVITYSTREAMS, "type" => "Create", "id" => "", "to" => $to, @@ -166,7 +166,7 @@ function activitypub_send_to_inbox($object) { curl_setopt_array($ch, array( CURLOPT_URL => $_to, CURLOPT_HTTPHEADER => array( - "Accept" => "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"", + "Accept" => "application/ld+json; profile=\"" . NAMESPACE_ACTIVITYSTREAMS . "\"", "Authorization" => "Bearer " . $attr['accesstoken'] ) )); @@ -224,7 +224,7 @@ function activitypub_parse_content($content) { class _GNUBOARD_ActivityPub { public static function open() { - header("Content-Type: application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\""); + header("Content-Type: application/ld+json; profile=\"" . NAMESPACE_ACTIVITYSTREAMS . "\""); } public static function user() {