diff options
author | Max Kostikov <max@kostikov.co> | 2019-04-03 00:15:34 +0200 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2019-04-03 00:15:34 +0200 |
commit | 410f37df1b46cde052f0317c957221df6e6a61dd (patch) | |
tree | 43cac3c12f69c9eec8ae0d3a1f302f238228abdc /Zotlabs/Module | |
parent | c9f3883c8c9c75ae0da69d04e3fe2ab275a3fc04 (diff) | |
download | volse-hubzilla-410f37df1b46cde052f0317c957221df6e6a61dd.tar.gz volse-hubzilla-410f37df1b46cde052f0317c957221df6e6a61dd.tar.bz2 volse-hubzilla-410f37df1b46cde052f0317c957221df6e6a61dd.zip |
Fix sync cover photo for clonned channels
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r-- | Zotlabs/Module/Cover_photo.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Zotlabs/Module/Cover_photo.php b/Zotlabs/Module/Cover_photo.php index 224107922..df321ddb6 100644 --- a/Zotlabs/Module/Cover_photo.php +++ b/Zotlabs/Module/Cover_photo.php @@ -208,7 +208,10 @@ logger('gis: ' . print_r($gis,true)); $channel = \App::get_channel(); $this->send_cover_photo_activity($channel,$base_image,$profile); - + + $sync = attach_export_data($channel,$base_image['resource_id']); + if($sync) + build_sync_packet($channel['channel_id'],array('file' => array($sync))); } else @@ -225,7 +228,7 @@ logger('gis: ' . print_r($gis,true)); require_once('include/attach.php'); - $res = attach_store(\App::get_channel(), get_observer_hash(), '', array('album' => t('Cover Photos'), 'hash' => $hash)); + $res = attach_store(\App::get_channel(), get_observer_hash(), '', array('album' => t('Cover Photos'), 'hash' => $hash, 'nosync' => true)); logger('attach_store: ' . print_r($res,true)); |