mirror of
https://github.com/friendica/friendica
synced 2025-05-12 04:24:11 +02:00
New constant for federated protocols
This commit is contained in:
parent
4bb7a8c342
commit
6041f74df6
14 changed files with 29 additions and 27 deletions
|
@ -105,7 +105,7 @@ class ContactSelector
|
|||
|
||||
$networkname = str_replace($search, $replace, $network);
|
||||
|
||||
if ((in_array($network, [Protocol::ACTIVITYPUB, Protocol::DFRN, Protocol::DIASPORA, Protocol::OSTATUS])) && ($profile != "")) {
|
||||
if ((in_array($network, Protocol::FEDERATED)) && ($profile != "")) {
|
||||
// Create the server url out of the profile url
|
||||
$parts = parse_url($profile);
|
||||
unset($parts['path']);
|
||||
|
|
|
@ -75,7 +75,7 @@ class ContactBlock
|
|||
'hidden' => false,
|
||||
'archive' => false,
|
||||
'rel' => $rel,
|
||||
'network' => [Protocol::DFRN, Protocol::ACTIVITYPUB, Protocol::OSTATUS, Protocol::DIASPORA],
|
||||
'network' => Protocol::FEDERATED,
|
||||
], ['limit' => $shown]);
|
||||
|
||||
if (DBA::isResult($contact_ids_stmt)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue