separate permission_update notification into permission_create and permission_update, since some networks send out a notification for duplicate share requests even if connected.
This commit is contained in:
@@ -190,7 +190,7 @@ function connedit_post(&$a) {
|
||||
}
|
||||
}
|
||||
|
||||
$abook_pending = $new_friend ? 0 : $orig_record[0]['abook_pending'];
|
||||
$abook_pending = (($new_friend) ? 0 : $orig_record[0]['abook_pending'];
|
||||
|
||||
$r = q("UPDATE abook SET abook_profile = '%s', abook_my_perms = %d , abook_closeness = %d, abook_pending = %d,
|
||||
abook_incl = '%s', abook_excl = '%s'
|
||||
@@ -214,7 +214,6 @@ function connedit_post(&$a) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
if($r)
|
||||
info( t('Connection updated.') . EOL);
|
||||
else
|
||||
@@ -222,7 +221,7 @@ function connedit_post(&$a) {
|
||||
|
||||
if($a->poi && $a->poi['abook_my_perms'] != $abook_my_perms
|
||||
&& (! intval($a->poi['abook_self']))) {
|
||||
proc_run('php', 'include/notifier.php', 'permission_update', $contact_id);
|
||||
proc_run('php', 'include/notifier.php', (($new_friend) ? 'permission_create' : 'permission_update'), $contact_id);
|
||||
}
|
||||
|
||||
if($new_friend) {
|
||||
|
||||
Reference in New Issue
Block a user