- $condition = [
- 'uid' => local_user(),
- 'self' => false,
- 'blocked' => false,
- 'pending' => false,
- 'archive' => false,
- 'deleted' => false,
- 'rel' => [Contact::FOLLOWER, Contact::SHARING, Contact::FRIEND],
- 'network' => Protocol::SUPPORT_PRIVATE,
- ];
-
- $contacts = Contact::selectToArray(
- ['id', 'name', 'addr', 'micro'],
- DBA::mergeConditions($condition, ["`notify` != ''"])
- );
-
- $arr = ['contact' => $contacts, 'entry' => $o];
-
- Hook::callAll(DI::args()->getModuleName() . '_pre_recipient', $arr);