mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-10 14:34:27 +02:00
Replace "Probe::isProbable" with "Protocol::supportsProbe"
This commit is contained in:
parent
a52c1cde9c
commit
2e46d64ea0
2 changed files with 10 additions and 5 deletions
|
@ -315,7 +315,12 @@ class Protocol
|
|||
*/
|
||||
public static function supportsProbe($protocol): bool
|
||||
{
|
||||
if (in_array($protocol, self::NATIVE_SUPPORT)) {
|
||||
// "Mail" can only be probed for a specific user in a specific condition, so we are ignoring it here.
|
||||
if ($protocol == self::MAIL) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (in_array($protocol, array_merge(self::NATIVE_SUPPORT, [self::ZOT, self::PHANTOM]))) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue