Browse Source

Move prune_deadguys to Contact

pull/4517/head
Hypolite Petovan 3 years ago
parent
commit
ce9e0f3649
2 changed files with 2 additions and 7 deletions
  1. +0
    -5
      include/acl_selectors.php
  2. +2
    -2
      src/Model/Group.php

+ 0
- 5
include/acl_selectors.php View File

@ -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);
}


+ 2
- 2
src/Model/Group.php View File

@ -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…
Cancel
Save