diff options
author | zotlabs <mike@macgirvin.com> | 2016-11-28 14:00:34 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2016-11-28 14:00:34 -0800 |
commit | b66aeea384598532757ebf5db4d4f923166c64ec (patch) | |
tree | 1b453e826f7d713c009684ac445351d433b8de80 /include | |
parent | 90f3cc7328511083ec226305a7bd7faeda12cb39 (diff) | |
download | volse-hubzilla-b66aeea384598532757ebf5db4d4f923166c64ec.tar.gz volse-hubzilla-b66aeea384598532757ebf5db4d4f923166c64ec.tar.bz2 volse-hubzilla-b66aeea384598532757ebf5db4d4f923166c64ec.zip |
minor re-arrange
Diffstat (limited to 'include')
-rw-r--r-- | include/zot.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/zot.php b/include/zot.php index 2cd60e815..ee4836d6c 100644 --- a/include/zot.php +++ b/include/zot.php @@ -425,6 +425,10 @@ function zot_refresh($them, $channel = null, $force = false) { $next_birthday = NULL_DATE; } + + // Keep original perms to check if we need to notify them + $previous_perms = get_all_perms($channel['channel_id'],$x['hash']); + $r = q("select * from abook where abook_xchan = '%s' and abook_channel = %d and abook_self = 0 limit 1", dbesc($x['hash']), intval($channel['channel_id']) @@ -488,10 +492,6 @@ function zot_refresh($them, $channel = null, $force = false) { } } - // Keep original perms to check if we need to notify them - $previous_perms = get_all_perms($channel['channel_id'],$x['hash']); - - $closeness = get_pconfig($channel['channel_id'],'system','new_abook_closeness'); if($closeness === false) $closeness = 80; |