From a461abfa6fa93cd09d26df103053a77eb92ac367 Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Tue, 20 Sep 2016 13:31:39 +0100 Subject: [PATCH] Save HTML to the correct location --- app/Jobs/DownloadWebMention.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Jobs/DownloadWebMention.php b/app/Jobs/DownloadWebMention.php index 63d8d307..d9ee71ab 100644 --- a/app/Jobs/DownloadWebMention.php +++ b/app/Jobs/DownloadWebMention.php @@ -41,7 +41,7 @@ class DownloadWebMention implements ShouldQueue //Laravel should catch and retry these automatically. if ($response->getStatusCode() == '200') { $filesystem = \Illuminate\FileSystem\FileSystem(); - $filename = $this->createFilenameFromURL($source); + $filename = storage_path() . '/HTML/' . $this->createFilenameFromURL($source); //backup file first $filenameBackup = $filename . '.' . date('Y-m-d') . '.backup'; if ($filesystem->exists($filename)) {