Add instance url to the downloaded images

This commit is contained in:
Jeremy Benoist
2016-10-30 19:50:00 +01:00
parent 48656e0eaa
commit 41ada277f0
3 changed files with 20 additions and 2 deletions

View File

@ -110,6 +110,8 @@ class DownloadImagesSubscriber implements EventSubscriber
*/
public function downloadImages(Config $config, Entry $entry)
{
$this->downloadImages->setWallabagUrl($config->get('wallabag_url'));
// if ($config->get('download_images_with_rabbitmq')) {
// } else if ($config->get('download_images_with_redis')) {
@ -132,6 +134,8 @@ class DownloadImagesSubscriber implements EventSubscriber
*/
public function downloadPreviewImage(Config $config, Entry $entry)
{
$this->downloadImages->setWallabagUrl($config->get('wallabag_url'));
// if ($config->get('download_images_with_rabbitmq')) {
// } else if ($config->get('download_images_with_redis')) {