Changed lists for moderated and moderating instances from unordered to ordered

This commit is contained in:
pezcurrel 2024-08-25 01:09:06 +02:00
parent ae602d0518
commit 228610997e

View file

@ -738,7 +738,7 @@ while ($if<$il && $row=mysqli_fetch_assoc($res)) {
$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__);
if (mysqli_num_rows($rres)>0) {
$out.='<ul class="nobott">'.N;
$out.='<ol class="nobott">'.N;
while ($rrow=mysqli_fetch_assoc($rres)) {
if (!is_null($rrow['ID']) && $rrow['IsMastodon']+0==1 && $rrow['LastOkCheckTS']+0>=$graceline) {
$aopen="<a href=\"?id={$rrow['ID']}\" target=\"_blank\">";
@ -751,7 +751,7 @@ while ($if<$il && $row=mysqli_fetch_assoc($res)) {
if (!is_null($rrow['Comment'])) $out.=' ('._('reason').': '.hspech($rrow['Comment']).')';// no strip, do hspech, because moderated instances comments dont support html nor markdown in mastodon
$out.='</li>'.N;
}
$out.='</ul>'.N;
$out.='</ol>'.N;
} else {
$out.='<span class="null">'._('None').'</span>';
}
@ -764,7 +764,7 @@ while ($if<$il && $row=mysqli_fetch_assoc($res)) {
$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) {
$out.='<ul class="nobott">'.N;
$out.='<ol class="nobott">'.N;
while ($rrow=mysqli_fetch_assoc($rres)) {
if ($rrow['IsMastodon']+0==1 && $rrow['LastOkCheckTS']+0>=$graceline) {
$aopen="<a href=\"?id={$rrow['ID']}\" target=\"_blank\">";
@ -777,7 +777,7 @@ while ($if<$il && $row=mysqli_fetch_assoc($res)) {
// if (!is_null($rrow['Comment'])) $out.=' ('._('reason').': '.hspech($rrow['Comment']).')';// no strip, do hspech, because moderated instances comments dont support html nor markdown in mastodon
// $out.='</li>'.N;
}
$out.='</ul>'.N;
$out.='</ol>'.N;
} else {
$out.='<span class="null">'._('None').'</span>';
}