Bookwyrm posts now work

This commit is contained in:
Michael 2022-07-23 12:50:15 +00:00
parent 7eb410bed7
commit 8c602071c2
5 changed files with 49 additions and 25 deletions

View file

@ -539,6 +539,13 @@ class APContact
HTTPSignature::setInboxStatus($url, true, $shared);
}
/**
* Check if the apcontact is a relay account
*
* @param array $apcontact
*
* @return bool
*/
public static function isRelay(array $apcontact): bool
{
if ($apcontact['nick'] != 'relay') {
@ -549,7 +556,7 @@ class APContact
return true;
}
if (in_array($apcontact['type'], ['Group', 'Service']) && ($apcontact['nick'] == 'relay') && is_null($apcontact['outbox'])) {
if (in_array($apcontact['type'], ['Group', 'Service']) && is_null($apcontact['outbox'])) {
return true;
}