fix the accidental fork bomb i made
This commit is contained in:
parent
121fd184b5
commit
b1e7b36202
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue