Updated git repo and Mastodon account refs

This commit is contained in:
pezcurrel 2024-07-14 21:53:11 +02:00
parent 7d525304c3
commit 4235e76cb0

View file

@ -32,7 +32,7 @@ require 'lib/booltostr.php';
const SNAME='Verbose'; const SNAME='Verbose';
const SVERS='0.3.6'; const SVERS='0.3.6';
const SREPO='https://git.lattuga.net/pongrebio/verbose'; const SREPO='https://git.lattuga.net/jones/verbose';
const DEFAC=500; const DEFAC=500;
const MINAC=100; const MINAC=100;
const MAXAC=100000; const MAXAC=100000;
@ -129,7 +129,7 @@ if (isset($_GET['code']) && isset($_COOKIE['verbose_host']) && isset($_COOKIE['v
} }
} elseif (isset($_POST['act']) && $_POST['act']=='login' && $_POST['host']!='' && $_POST['token']=='') { } elseif (isset($_POST['act']) && $_POST['act']=='login' && $_POST['host']!='' && $_POST['token']=='') {
$host=$_POST['host']; $host=$_POST['host'];
$postcont=['client_name'=>'Verbose','redirect_uris'=>$rediruri,'scopes'=>$scope,'website'=>'https://git.lattuga.net/pongrebio/verbose']; $postcont=['client_name'=>'Verbose','redirect_uris'=>$rediruri,'scopes'=>$scope,'website'=>'https://git.lattuga.net/jones/verbose'];
$res=mastpost($host,$token,'/api/v1/apps',$postcont,$timeout); $res=mastpost($host,$token,'/api/v1/apps',$postcont,$timeout);
//$debug.='AUTH RESULTS: '.preprint($res); //$debug.='AUTH RESULTS: '.preprint($res);
if ($res['ok']) { if ($res['ok']) {
@ -317,7 +317,7 @@ $headmsgs='';
$intro="<div class=\"normtext\"><p class=\"firstp\">Hello, this is a {$sname} instance, it can split your long post considering <a href=\"https://docs.joinmastodon.org/user/posting/#text\">Mastodon rules</a>: every http(s) link counts for 23 characters and every mention counts only for its username part. Each split post comes with “…” signs where it makes sense and with a counter in “[n/t]” form, where “n” is current post number and “t” is total posts number.</p> $intro="<div class=\"normtext\"><p class=\"firstp\">Hello, this is a {$sname} instance, it can split your long post considering <a href=\"https://docs.joinmastodon.org/user/posting/#text\">Mastodon rules</a>: every http(s) link counts for 23 characters and every mention counts only for its username part. Each split post comes with “…” signs where it makes sense and with a counter in “[n/t]” form, where “n” is current post number and “t” is total posts number.</p>
<p>{$sname} doesnt save anywhere what you write or paste into it, it doesnt use third parties cookies, it sets some cookies of its own only if you choose to connect it to your account, and it can be used even without Javascript.</p> <p>{$sname} doesnt save anywhere what you write or paste into it, it doesnt use third parties cookies, it sets some cookies of its own only if you choose to connect it to your account, and it can be used even without Javascript.</p>
<p>If you find issues please report them to <a href=\"https://puntarella.party/@umpi\">me on Mastodon</a>, or <a href=\"https://git.lattuga.net/pongrebio/verbose/issues\">here</a>.</p></div>\n"; <p>If you find issues please report them to <a href=\"https://puntarella.party/@j0nes\">me on Mastodon</a>, or <a href=\"https://git.lattuga.net/jones/verbose/issues\">here</a>.</p></div>\n";
$postmsgs=''; $postmsgs='';
$postsoffset=0; $postsoffset=0;
@ -783,7 +783,7 @@ if ($splitmsgs=='') {
echo "<p class=\"firstp\">Sorry, the length of one split post (namely {$errposts[0]}) exceeds {$_POST['avchars']} characters."; echo "<p class=\"firstp\">Sorry, the length of one split post (namely {$errposts[0]}) exceeds {$_POST['avchars']} characters.";
else else
echo "<p class=\"firstp\">Sorry, the length of {$epc} split posts (namely ".implode(', ',$errposts).") exceeds {$_POST['avchars']} characters."; echo "<p class=\"firstp\">Sorry, the length of {$epc} split posts (namely ".implode(', ',$errposts).") exceeds {$_POST['avchars']} characters.";
echo " Please report this bug <a href=\"https://git.lattuga.net/pongrebio/verbose/issues\">here</a>, possibly citing the original post text.</p>\n"; echo " Please report this bug <a href=\"https://git.lattuga.net/jones/verbose/issues\">here</a>, possibly citing the original post text.</p>\n";
} }
if ($postscount>1 && $aliif && $posts[$postscount-1]['mastlen']+$linklen<=$_POST['avchars']) { if ($postscount>1 && $aliif && $posts[$postscount-1]['mastlen']+$linklen<=$_POST['avchars']) {
$posts[$postscount-1]['post'].=$conf['link']; $posts[$postscount-1]['post'].=$conf['link'];