Changed “Public” to “First post public, subsequent posts unlisted” in the “Split posts’ visibility” drop-down menu

This commit is contained in:
pezcurrel 2024-07-26 10:05:28 +02:00
parent 194810b1ff
commit 64b3f52cd5

View file

@ -31,7 +31,7 @@ require 'lib/ght.php';
require 'lib/booltostr.php';
const SNAME='Verbose';
const SVERS='0.3.6';
const SVERS='0.3.7';
const SREPO='https://git.lattuga.net/jones/verbose';
const DEFAC=500;
const MINAC=100;
@ -440,7 +440,7 @@ if (!$loggedin) {
} else {
$auth="<a name=\"connect\"></a><h2>Connected :-)</h2>\n{$authmsgs}\n<form method=\"post\" id=\"authform\" name=\"authform\" action=\"{$formact}\">\n".oldpost2hid()."<div class=\"normtext\">{$sname} is connected to your {$myacc['acct']}@{$host} account.</div>\n<div><button type=\"submit\" id=\"logoutbutton\" name=\"act\" value=\"logout\" class=\"button\">Disconnect</button></div>\n</form>\n";
$replyto='<div class="inputdiv"><label for="replyto">URL of post to reply to</label><input type="text" id="replyto" name="replyto" class="inputx" placeholder="Leave blank to make a new post" value="'.htmlentities($_POST['replyto']).'" maxlength="'.MAXREPTOLEN.'"><input type="hidden" name="prevreplyto" value="'.htmlentities($_POST['replyto']).'"><div class="lastborder"><div class="trow"><input type="checkbox" name="setcws" id="setcws" class="tcell" value="1"'.$setcwsck.'><label for="setcws" class="cblab">Set “Content Warning” to this posts Content Warning (if any)</label></div><div class="trow"><input type="checkbox" name="setments" id="setments" class="tcell" value="1"'.$setmentsck.'><label for="setments" class="cblab">Set “Text to prepend” to this posts sender and mentions (except you)</label></div><div class="trow"><input type="checkbox" name="setvisib" id="setvisib" class="tcell" value="1"'.$setvisibck.'><label for="setvisib" class="cblab">Set “Split posts visibility” to this posts visibility</label></div><div class="trow"><input type="checkbox" name="setlang" id="setlang" class="tcell" value="1"'.$setlangck.'><label for="setlang" class="cblab">Set “Split posts language” to this posts language</label></div></div></div>';
$optsa=['public'=>'Public','unlisted'=>'Unlisted','private'=>'Followers-only','direct'=>'Direct'];
$optsa=['public'=>'First post public, subsequent posts unlisted','unlisted'=>'Unlisted','private'=>'Followers-only','direct'=>'Direct'];
$buff='';
foreach ($optsa as $key=>$val) {
if ($key==$_POST['visib']) {