diff --git a/admin/fedi.php b/admin/fedi.php index b1dff9f..6c6680a 100644 --- a/admin/fedi.php +++ b/admin/fedi.php @@ -17,10 +17,10 @@ curl_setopt($ch, CURLOPT_HTTPHEADER, $contentO = $arr["text"]; $contentR = $arr["responsetext"]; +$url = "{$pageProto}://" . $_SERVER["HTTP_HOST"] . $pagePath . "/fetch.php?id={$id}"; if ($arr["iscwed"] == "t") { $contentCW = $arr["cw"]; - $url = "{$pageProto}://" . $_SERVER["HTTP_HOST"] . str_replace("/admin/fedi.php", "/fetch.php?id={$id}", $_SERVER["REQUEST_URI"]); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query(array('status' => "question: {$contentO}\n\nresponse: {$contentR}\n\nlink: {$url}", 'visibility' => "{$fediVisibility}", 'spoiler_text' => "anonymous question response (automated); cw: {$contentCW}"))); } else {