Refactor queries in contact module

This commit is contained in:
Hypolite Petovan 2020-01-23 14:52:22 -05:00
parent 9475383c4f
commit ed3ac36621
2 changed files with 92 additions and 69 deletions

View file

@ -82,7 +82,7 @@ class Widget
public static function unavailableNetworks()
{
// Always hide content from these networks
$networks = ['face', 'apdn'];
$networks = [Protocol::PHANTOM, Protocol::FACEBOOK, Protocol::APPNET];
if (!Addon::isEnabled("discourse")) {
$networks[] = Protocol::DISCOURSE;
@ -175,7 +175,7 @@ class Widget
}
/**
* Return networks widget
* Return contact relationship widget
*
* @param string $baseurl baseurl
* @param string $selected optional, default empty