Move prune_deadguys to Contact
This commit is contained in:
parent
113ea38d50
commit
ce9e0f3649
2 changed files with 2 additions and 7 deletions
|
@ -9,11 +9,6 @@ use Friendica\Model\Contact;
|
|||
|
||||
require_once "mod/proxy.php";
|
||||
|
||||
function prune_deadguys($arr) {
|
||||
Contact::pruneUnavailable($arr);
|
||||
return $arr;
|
||||
}
|
||||
|
||||
function get_acl_permissions($user = null) {
|
||||
return Acl::getDefaultUserPermissions($user);
|
||||
}
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
*/
|
||||
namespace Friendica\Model;
|
||||
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\BaseObject;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Database\DBM;
|
||||
use dba;
|
||||
|
||||
|
@ -290,7 +290,7 @@ class Group extends BaseObject
|
|||
|
||||
if ($check_dead && !$use_gcontact) {
|
||||
require_once 'include/acl_selectors.php';
|
||||
$return = prune_deadguys($return);
|
||||
Contact::pruneUnavailable($return);
|
||||
}
|
||||
return $return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue