mirror of
https://github.com/friendica/friendica
synced 2025-04-24 23:10:11 +00:00
New constant for federated protocols
This commit is contained in:
parent
4bb7a8c342
commit
6041f74df6
14 changed files with 29 additions and 27 deletions
|
@ -521,7 +521,7 @@ class Contact extends BaseModule
|
|||
$relation_text = '';
|
||||
}
|
||||
|
||||
if (!in_array($contact['network'], [Protocol::ACTIVITYPUB, Protocol::DFRN, Protocol::OSTATUS, Protocol::DIASPORA])) {
|
||||
if (!in_array($contact['network'], Protocol::FEDERATED)) {
|
||||
$relation_text = '';
|
||||
}
|
||||
|
||||
|
@ -968,7 +968,7 @@ class Contact extends BaseModule
|
|||
|
||||
$profiledata = Model\Contact::getDetailsByURL($contact['url']);
|
||||
|
||||
if (local_user() && in_array($profiledata['network'], [Protocol::ACTIVITYPUB, Protocol::DFRN, Protocol::DIASPORA, Protocol::OSTATUS])) {
|
||||
if (local_user() && in_array($profiledata['network'], Protocol::FEDERATED)) {
|
||||
$profiledata['remoteconnect'] = System::baseUrl() . '/follow?url=' . urlencode($profiledata['url']);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue