mirror of
https://github.com/friendica/friendica
synced 2025-04-26 11:50:11 +00:00
Diaspora relay functionality is removed
This commit is contained in:
parent
cd8ce7eada
commit
bf8cb39102
9 changed files with 333 additions and 345 deletions
|
@ -68,13 +68,9 @@ class Transmitter
|
|||
*/
|
||||
public static function addRelayServerInboxes(array $inboxes = [])
|
||||
{
|
||||
$contacts = DBA::select('apcontact', ['inbox'],
|
||||
["`type` = ? AND `url` IN (SELECT `url` FROM `contact` WHERE `uid` = ? AND `rel` = ?)",
|
||||
'Application', 0, Contact::FRIEND]);
|
||||
while ($contact = DBA::fetch($contacts)) {
|
||||
foreach (Relay::getList(['inbox']) as $contact) {
|
||||
$inboxes[$contact['inbox']] = $contact['inbox'];
|
||||
}
|
||||
DBA::close($contacts);
|
||||
|
||||
return $inboxes;
|
||||
}
|
||||
|
@ -92,7 +88,7 @@ class Transmitter
|
|||
return $inboxes;
|
||||
}
|
||||
|
||||
$relays = Relay::getList($item_id, [], [Protocol::ACTIVITYPUB]);
|
||||
$relays = Relay::getDirectRelayList($item_id);
|
||||
if (empty($relays)) {
|
||||
return $inboxes;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue