mirror of
https://github.com/friendica/friendica
synced 2025-04-28 13:44:25 +02:00
q
is now completely removed
This commit is contained in:
parent
58215e56c3
commit
2c134c5229
8 changed files with 269 additions and 407 deletions
|
@ -91,9 +91,9 @@ class Widget
|
|||
}
|
||||
|
||||
/**
|
||||
* Return unavailable networks
|
||||
* Return unavailable networks as array
|
||||
*/
|
||||
public static function unavailableNetworks()
|
||||
public static function unavailableNetworksAsArray()
|
||||
{
|
||||
// Always hide content from these networks
|
||||
$networks = [Protocol::PHANTOM, Protocol::FACEBOOK, Protocol::APPNET];
|
||||
|
@ -125,6 +125,15 @@ class Widget
|
|||
if (!Addon::isEnabled("pnut")) {
|
||||
$networks[] = Protocol::PNUT;
|
||||
}
|
||||
return $networks;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return unavailable networks
|
||||
*/
|
||||
public static function unavailableNetworks()
|
||||
{
|
||||
$networks = self::unavailableNetworksAsArray();
|
||||
|
||||
if (!sizeof($networks)) {
|
||||
return "";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue