add local_dir_update hook
This commit is contained in:
parent
81d94dae2c
commit
ee14657863
@ -431,10 +431,13 @@ function local_dir_update($uid, $force) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$arr = array('hash' => $hash, 'profile' => $profile);
|
||||||
|
call_hooks('local_dir_update', $arr);
|
||||||
|
|
||||||
$address = $p[0]['channel_address'] . '@' . get_app()->get_hostname();
|
$address = $p[0]['channel_address'] . '@' . get_app()->get_hostname();
|
||||||
|
|
||||||
if (perm_is_allowed($uid, '', 'view_profile')) {
|
if (perm_is_allowed($uid, '', 'view_profile')) {
|
||||||
import_directory_profile($hash, $profile, $address, 0);
|
import_directory_profile($hash, $arr['profile'], $address, 0);
|
||||||
} else {
|
} else {
|
||||||
// they may have made it private
|
// they may have made it private
|
||||||
$r = q("delete from xprof where xprof_hash = '%s'",
|
$r = q("delete from xprof where xprof_hash = '%s'",
|
||||||
|
1047
util/messages.po
1047
util/messages.po
File diff suppressed because it is too large
Load Diff
@ -1 +1 @@
|
|||||||
2015-05-21.1039
|
2015-05-23.1041
|
||||||
|
Reference in New Issue
Block a user