Fixed a bug in “Threads” status detection code

This commit is contained in:
pezcurrel 2023-12-27 08:50:19 +01:00
parent eb831bb177
commit 7e6048f939

View file

@ -386,7 +386,7 @@ if ($idata['IsMastodon'] && $idata['Version']>='4.0.0') {
if (preg_match('#^(threads.net|.*\.threads.net)$#i',$block['domain'])===1) { if (preg_match('#^(threads.net|.*\.threads.net)$#i',$block['domain'])===1) {
if ($block['severity']=='suspend') if ($block['severity']=='suspend')
$idata['Threads']='suspended'; $idata['Threads']='suspended';
elseif ($rrow['Severity']=='silence') elseif ($block['severity']=='silence')
$idata['Threads']='limited'; $idata['Threads']='limited';
else else
$idata['Threads']=$block['severity']; $idata['Threads']=$block['severity'];