Update activitiypub.extend.php
This commit is contained in:
parent
c3954982cd
commit
e45083ead5
|
@ -137,7 +137,7 @@ function activitypub_send_to_inbox($object) {
|
||||||
|
|
||||||
// 외부로 보낼 전문 생성
|
// 외부로 보낼 전문 생성
|
||||||
$context = array(
|
$context = array(
|
||||||
"@context" => "https://www.w3.org/ns/activitystreams",
|
"@context" => NAMESPACE_ACTIVITYSTREAMS,
|
||||||
"type" => "Create",
|
"type" => "Create",
|
||||||
"id" => "",
|
"id" => "",
|
||||||
"to" => $to,
|
"to" => $to,
|
||||||
|
@ -166,7 +166,7 @@ function activitypub_send_to_inbox($object) {
|
||||||
curl_setopt_array($ch, array(
|
curl_setopt_array($ch, array(
|
||||||
CURLOPT_URL => $_to,
|
CURLOPT_URL => $_to,
|
||||||
CURLOPT_HTTPHEADER => array(
|
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']
|
"Authorization" => "Bearer " . $attr['accesstoken']
|
||||||
)
|
)
|
||||||
));
|
));
|
||||||
|
@ -224,7 +224,7 @@ function activitypub_parse_content($content) {
|
||||||
|
|
||||||
class _GNUBOARD_ActivityPub {
|
class _GNUBOARD_ActivityPub {
|
||||||
public static function open() {
|
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() {
|
public static function user() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user