From 7909ecdfdd0b0d1b11d5064d6782b7d5809223f4 Mon Sep 17 00:00:00 2001 From: pezcurrel Date: Sun, 25 Aug 2024 09:21:16 +0200 Subject: [PATCH] =?UTF-8?q?Added=20tips=20about=20moderated=20and=20modera?= =?UTF-8?q?ting=20instances;=20fixed=20a=20flaw=20in=20max=20toot=20chars?= =?UTF-8?q?=20display=20(it=20didn=E2=80=99t=20use=20=E2=80=9Cfnum?= =?UTF-8?q?=E2=80=9D=20before);=20minor=20changes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/site/instances.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/web/site/instances.php b/web/site/instances.php index a570c6c..e1a82cc 100644 --- a/web/site/instances.php +++ b/web/site/instances.php @@ -630,10 +630,10 @@ while ($if<$il && $row=mysqli_fetch_assoc($res)) { $out.='
'._('Active users (last month)').' '.nully(fnum($row['ActiveUsersMonth'],$lc)).'
'.N; $out.='
'._('Active users (last six months)').' '.nully(fnum($row['ActiveUsersHalfYear'],$lc)).'
'.N; $out.='
'._('Characters per post (max)').' '; - if (nullemp(fnum($row['MaxTootChars'],$lc))) + if (nullemp($row['MaxTootChars'])) $out.='500'; else - $out.=$row['MaxTootChars']; + $out.=fnum($row['MaxTootChars'],$lc); $out.='
'.N; $out.='
'._('Known instances').' '.nully(fnum($row['DomainCount'],$lc)).'
'.N; $out.=''.N; @@ -642,7 +642,7 @@ while ($if<$il && $row=mysqli_fetch_assoc($res)) { if (is_null($row['FirstSeen'])) {// can't currently happen, but we put it there in any event $fdate=''._('Not available{singular}').''; } elseif ($row['FirstSeen']<$wrfss) { - $fdate=''._('Before').' '.$wrfsstxt.''; + $fdate=''._('Before').' '.$wrfsstxt.' [?]'; } else { $fdate=datefmt_format($dfmt,$row['FirstSeen']).' UTC'; } @@ -733,7 +733,7 @@ while ($if<$il && $row=mysqli_fetch_assoc($res)) { } $out.=''.N; - $out.='
'._('Moderated instances').'
'; + $out.='
'._('Moderated instances').' [?]
'; if ($row['PublicBlocksList']==1) { $sevmap=['silence'=>_('limited'), 'suspend'=>_('suspended')]; $rres=tquery("SELECT Domain, Severity, Comment, ID, IsMastodon, LastOkCheckTS FROM InstBlocks LEFT JOIN Instances ON URI=Domain WHERE InstID={$row['ID']} ORDER BY Domain ASC",__LINE__); @@ -760,7 +760,7 @@ while ($if<$il && $row=mysqli_fetch_assoc($res)) { } $out.='
'.N; - $out.='
'._('Instances certainly moderating this instance').'
'; + $out.='
'._('Instances certainly moderating this instance').' [?]
'; $sevmap=['silence'=>_('limitation'), 'suspend'=>_('suspension')]; $rres=tquery("SELECT Severity, Comment, ID, URI, IsMastodon, LastOkCheckTS FROM InstBlocks LEFT JOIN Instances ON ID=InstID WHERE Domain=\"{$row['URI']}\" ORDER BY URI ASC",__LINE__); if (mysqli_num_rows($rres)>0) {