aboutsummaryrefslogtreecommitdiffstats
path: root/include/dir_fns.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-05-23 15:07:24 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-05-23 15:07:24 -0700
commitee146578637f28a1b65ee3538935d2f4352381b2 (patch)
treeae6cc1776eb7bd040249687c860377c4828a4d0b /include/dir_fns.php
parent81d94dae2c5f986a5d5784f66b378d6320de2c07 (diff)
downloadvolse-hubzilla-ee146578637f28a1b65ee3538935d2f4352381b2.tar.gz
volse-hubzilla-ee146578637f28a1b65ee3538935d2f4352381b2.tar.bz2
volse-hubzilla-ee146578637f28a1b65ee3538935d2f4352381b2.zip
add local_dir_update hook
Diffstat (limited to 'include/dir_fns.php')
-rw-r--r--include/dir_fns.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/dir_fns.php b/include/dir_fns.php
index ebaa7c427..a67a429ae 100644
--- a/include/dir_fns.php
+++ b/include/dir_fns.php
@@ -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();
if (perm_is_allowed($uid, '', 'view_profile')) {
- import_directory_profile($hash, $profile, $address, 0);
+ import_directory_profile($hash, $arr['profile'], $address, 0);
} else {
// they may have made it private
$r = q("delete from xprof where xprof_hash = '%s'",