Fix sync cover photo for clonned channels
This commit is contained in:
parent
c9f3883c8c
commit
410f37df1b
@ -209,6 +209,9 @@ logger('gis: ' . print_r($gis,true));
|
|||||||
$channel = \App::get_channel();
|
$channel = \App::get_channel();
|
||||||
$this->send_cover_photo_activity($channel,$base_image,$profile);
|
$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
|
else
|
||||||
@ -225,7 +228,7 @@ logger('gis: ' . print_r($gis,true));
|
|||||||
|
|
||||||
require_once('include/attach.php');
|
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));
|
logger('attach_store: ' . print_r($res,true));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user