aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-07-02 21:55:36 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-07-02 21:55:36 -0700
commit065a50c920ebfe2274ab134bca7849051f3582e7 (patch)
tree696993095e821eda1b58576b3947714eceabd681 /mod
parent9369e521bbe45c5be3e5342d14b0670c85f78a31 (diff)
downloadvolse-hubzilla-065a50c920ebfe2274ab134bca7849051f3582e7.tar.gz
volse-hubzilla-065a50c920ebfe2274ab134bca7849051f3582e7.tar.bz2
volse-hubzilla-065a50c920ebfe2274ab134bca7849051f3582e7.zip
a few clone sync fixes as well as some work on hubzilla clone sync back to redmatrix
Diffstat (limited to 'mod')
-rw-r--r--mod/follow.php13
-rwxr-xr-xmod/pconfig.php1
2 files changed, 14 insertions, 0 deletions
diff --git a/mod/follow.php b/mod/follow.php
index 79e2a4fa5..3ad2cb3bb 100644
--- a/mod/follow.php
+++ b/mod/follow.php
@@ -24,6 +24,19 @@ function follow_init(&$a) {
info( t('Channel added.') . EOL);
+ $clone = array();
+ foreach($result['abook'] as $k => $v) {
+ if(strpos($k,'abook_') === 0) {
+ $clone[$k] = $v;
+ }
+ }
+ unset($clone['abook_id']);
+ unset($clone['abook_account']);
+ unset($clone['abook_channel']);
+
+ build_sync_packet(0 /* use the current local_channel */, array('abook' => array($clone)));
+
+
// If we can view their stream, pull in some posts
if(($result['abook']['abook_their_perms'] & PERMS_R_STREAM) || ($result['abook']['xchan_network'] === 'rss'))
diff --git a/mod/pconfig.php b/mod/pconfig.php
index e0ceb5d22..413dd2911 100755
--- a/mod/pconfig.php
+++ b/mod/pconfig.php
@@ -33,6 +33,7 @@ function pconfig_post(&$a) {
}
set_pconfig(local_channel(),$cat,$k,$v);
+ build_sync_packet();
goaway(z_root() . '/pconfig/' . $cat . '/' . $k);