when connnection permissions change, notify the other side so they can refresh their info

This commit is contained in:
friendica 2012-11-10 03:01:07 -08:00
parent d9917dc8f8
commit ff40eabb7a

View File

@ -90,9 +90,6 @@ function connections_post(&$a) {
}
}
$r = q("UPDATE abook SET abook_profile = %d, abook_my_perms = %d , abook_closeness = %d
where abook_id = %d AND abook_channel = %d LIMIT 1",
intval($profile_id),
@ -107,6 +104,11 @@ function connections_post(&$a) {
notice( t('Failed to update connnection record.') . EOL);
if((x($a->data,'abook')) && $a->data['abook']['abook_my_perms'] != $abook_my_perms) {
// FIXME - this message type is not yet handled in the notifier
proc_run('php', 'include/notifier.php', 'permission_update', $contact_id);
}
// Refresh the structure in memory with the new data
$r = q("SELECT abook.*, xchan.*