mirror of
https://github.com/friendica/friendica
synced 2025-04-28 11:04:22 +02:00
Bookwyrm posts now work
This commit is contained in:
parent
7eb410bed7
commit
8c602071c2
5 changed files with 49 additions and 25 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue