aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-11-10 03:01:07 -0800
committerfriendica <info@friendica.com>2012-11-10 03:01:07 -0800
commitff40eabb7a45c0d012c82d1f629ae599f326d312 (patch)
treea942211da2cb7b61fa695f60384347b0e605d725
parentd9917dc8f89a5a14820820ed399371b24afd63f7 (diff)
downloadvolse-hubzilla-ff40eabb7a45c0d012c82d1f629ae599f326d312.tar.gz
volse-hubzilla-ff40eabb7a45c0d012c82d1f629ae599f326d312.tar.bz2
volse-hubzilla-ff40eabb7a45c0d012c82d1f629ae599f326d312.zip
when connnection permissions change, notify the other side so they can refresh their info
-rw-r--r--mod/connections.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/mod/connections.php b/mod/connections.php
index bdf5c06ea..8286fabec 100644
--- a/mod/connections.php
+++ b/mod/connections.php
@@ -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.*