fix cws
This commit is contained in:
parent
a98d9316ba
commit
20ccba81c4
1 changed files with 4 additions and 4 deletions
|
@ -18,16 +18,16 @@ curl_setopt($ch, CURLOPT_HTTPHEADER,
|
|||
$contentO = $arr["text"];
|
||||
$contentR = $arr["responsetext"];
|
||||
|
||||
if ($arr["iscwed"]) {
|
||||
if ($arr["iscwed"] == "t") {
|
||||
$contentCW = $arr["cw"];
|
||||
curl_setopt($ch, CURLOPT_POSTFIELDS,
|
||||
http_build_query(array('status' => "question: {$contentO}\nresponse: {$contentR}", 'visibility' => "{$fediVisibility}", 'spoiler_text' => "anonymous requestion response (automated); cw: {$contentCW}")));
|
||||
http_build_query(array('status' => "question: {$contentO}\nresponse: {$contentR}", 'visibility' => "{$fediVisibility}", 'spoiler_text' => "anonymous question response (automated); cw: {$contentCW}")));
|
||||
} else {
|
||||
curl_setopt($ch, CURLOPT_POSTFIELDS,
|
||||
http_build_query(array('status' => "question: {$contentO}\nresponse: {$contentR}", 'visibility' => "{$fediVisibility}", 'spoiler_text' => "anonymous requestion response (automated)")));
|
||||
http_build_query(array('status' => "question: {$contentO}\nresponse: {$contentR}", 'visibility' => "{$fediVisibility}", 'spoiler_text' => "anonymous question response (automated)")));
|
||||
}
|
||||
|
||||
curl_exec($ch);
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||
|
||||
curl_close($ch);
|
||||
|
||||
|
|
Loading…
Reference in a new issue