Update activitiypub.extend.php

This commit is contained in:
Namhyeon Go 2022-06-29 20:52:06 +09:00 committed by GitHub
parent ec79ed6df0
commit 1123d3db1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -171,13 +171,11 @@ class _GNUBOARD_ActivityPub {
); );
if (!empty($params['bo_table']) && !empty($params['wr_id'])) { if (!empty($params['bo_table']) && !empty($params['wr_id'])) {
$query_string = http_build_query(array( $qstr = http_build_query(array(
"bo_table" => $params['bo_table'], "bo_table" => $params['bo_table'],
"wr_id" => $params['wr_id'] "wr_id" => $params['wr_id']
)); ));
header("Location: " . G5_BBS_URL . "/board.php?" . $qstr);
$link = G5_BBS_URL . "/board.php?" . $query_string;
header("Location: " . $link);
} else { } else {
return activitypub_json_encode(array("message" => "Could not find the stream")); return activitypub_json_encode(array("message" => "Could not find the stream"));
} }