update directory on cover photo changes
This commit is contained in:
parent
59ee045c24
commit
cd829c096b
@ -69,6 +69,9 @@ class Cover_photo extends \Zotlabs\Web\Controller {
|
|||||||
build_sync_packet($channel['channel_id'],array('file' => array($sync)));
|
build_sync_packet($channel['channel_id'],array('file' => array($sync)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Update directory in background
|
||||||
|
\Zotlabs\Daemon\Master::Summon(array('Directory',$channel['channel_id']));
|
||||||
|
|
||||||
goaway(z_root() . '/cover_photo');
|
goaway(z_root() . '/cover_photo');
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -229,6 +232,8 @@ class Cover_photo extends \Zotlabs\Web\Controller {
|
|||||||
if($sync)
|
if($sync)
|
||||||
build_sync_packet($channel['channel_id'],array('file' => array($sync)));
|
build_sync_packet($channel['channel_id'],array('file' => array($sync)));
|
||||||
|
|
||||||
|
// Update directory in background
|
||||||
|
\Zotlabs\Daemon\Master::Summon(array('Directory',$channel['channel_id']));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
notice( t('Unable to process image') . EOL);
|
notice( t('Unable to process image') . EOL);
|
||||||
|
Reference in New Issue
Block a user