fix the accidental fork bomb i made

This commit is contained in:
notfire 2024-12-10 10:22:09 -05:00
parent 121fd184b5
commit b1e7b36202
No known key found for this signature in database
GPG key ID: 3AFDACAAB4E56B16

View file

@ -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 {