mirror of
https://github.com/friendica/friendica
synced 2025-04-27 07:10:12 +00:00
Merge pull request #13131 from annando/supportsprobe
Replace "Probe::isProbable" with "Protocol::supportsProbe"
This commit is contained in:
commit
878f144bc1
2 changed files with 15 additions and 6 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