$page->registerStylesheet(Theme::getPathForFile('js/friendica-tagsinput/friendica-tagsinput.css'));
$page->registerStylesheet(Theme::getPathForFile('js/friendica-tagsinput/friendica-tagsinput-typeahead.css'));
- // When used for private messages, we limit correspondence to mutual DFRN/Friendica friends and the selector
- // to one recipient. By default our selector allows multiple selects amongst all contacts.
$condition = [
'uid' => local_user(),
'self' => false,
'archive' => false,
'deleted' => false,
'rel' => [Contact::FOLLOWER, Contact::SHARING, Contact::FRIEND],
- 'network' => Protocol::FEDERATED,
+ 'network' => Protocol::SUPPORT_PRIVATE,
];
$contacts = Contact::selectToArray(
$arr = ['contact' => $contacts, 'entry' => $o];
- Hook::callAll(DI::module()->getName() . '_pre_recipient', $arr);
+ Hook::callAll(DI::args()->getModuleName() . '_pre_recipient', $arr);
$tpl = Renderer::getMarkupTemplate('acl/message_recipient.tpl');
$o = Renderer::replaceMacros($tpl, [
'$selected' => $selected,
]);
- Hook::callAll(DI::module()->getName() . '_post_recipient', $o);
+ Hook::callAll(DI::args()->getModuleName() . '_post_recipient', $o);
return $o;
}