';
if ($row['PublicBlocksList']==1) {
$sevmap=['silence'=>_('limited'), 'suspend'=>_('suspended')];
- $rres=tquery('SELECT Domain, Severity, Comment FROM InstBlocks WHERE InstID='.$row['ID'],__LINE__);
+ $rres=tquery("SELECT Domain, Severity, Comment, ID FROM InstBlocks LEFT JOIN Instances ON URI=Domain WHERE InstID={$row['ID']} ORDER BY Domain ASC",__LINE__);
if (mysqli_num_rows($rres)>0) {
$out.='
'.N;
while ($rrow=mysqli_fetch_assoc($rres)) {
- $out.='
'.hspech($rrow['Domain']).': '.$sevmap[$rrow['Severity']];
+ if (!is_null($rrow['ID']))
+ $out.="
{$rrow['Domain']}: {$sevmap[$rrow['Severity']]}";
if (!is_null($rrow['Comment'])) $out.=' ('._('reason').': '.hspech($rrow['Comment']).')';// no strip, do hspech, because moderated instances comments don’t support html nor markdown in mastodon
$out.='
'._('Instances certainly moderating this instance').'
';
$sevmap=['silence'=>_('limitation'), 'suspend'=>_('suspension')];
- $rres=tquery('SELECT Severity, Comment, URI FROM InstBlocks LEFT JOIN Instances ON ID=InstID WHERE Domain="'.$row['URI'].'"',__LINE__);
+ $rres=tquery("SELECT Severity, Comment, ID, URI FROM InstBlocks LEFT JOIN Instances ON ID=InstID WHERE Domain=\"{$row['URI']}\" ORDER BY URI ASC",__LINE__);
if (mysqli_num_rows($rres)>0) {
$out.='
'.N;
while ($rrow=mysqli_fetch_assoc($rres)) {
- $out.='
\n";
// if (!is_null($rrow['Comment'])) $out.=' ('._('reason').': '.hspech($rrow['Comment']).')';// no strip, do hspech, because moderated instances comments don’t support html nor markdown in mastodon
// $out.=''.N;
}