From 24edb9624240ee74859373d584ef931ae475d32d Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Mon, 19 Sep 2016 17:34:00 +0100 Subject: [PATCH 1/3] Remove use statements that are no longer needed --- app/Providers/AppServiceProvider.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index 177b94cc..3c5c8377 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -5,8 +5,6 @@ namespace App\Providers; use App\Tag; use App\Note; use Validator; -use App\WebMention; -use App\Observers\WebMentionObserver; use Illuminate\Support\ServiceProvider; class AppServiceProvider extends ServiceProvider From d000295c63de7318d3c33afa0d3be46b44d01ed3 Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Mon, 19 Sep 2016 21:22:03 +0100 Subject: [PATCH 2/3] Output info to the console --- app/Console/Commands/ParseCachedWebMentions.php | 2 ++ app/Console/Commands/ReDownloadWebMentions.php | 1 + 2 files changed, 3 insertions(+) diff --git a/app/Console/Commands/ParseCachedWebMentions.php b/app/Console/Commands/ParseCachedWebMentions.php index f375f213..03e3d277 100644 --- a/app/Console/Commands/ParseCachedWebMentions.php +++ b/app/Console/Commands/ParseCachedWebMentions.php @@ -43,12 +43,14 @@ class ParseCachedWebMentions extends Command foreach ($HTMLfiles as $file) { if ($file->getExtension() != 'backup') { //we don’t want to parse.backup files $filepath = $file->getPathname(); + $this->info('Loading HTML from: ' . $filepath); $html = $filesystem->get($filepath); $url = $this->URLFromFilename($filepath); $microformats = \Mf2\parse($html, $url); $webmention = WebMention::where('source', $url)->firstOrFail(); $webmention->mf2 = json_encode($microformats); $webmention->save(); + $this->info('Saved the microformats to the database.'); } } } diff --git a/app/Console/Commands/ReDownloadWebMentions.php b/app/Console/Commands/ReDownloadWebMentions.php index 12622fa3..e7269238 100644 --- a/app/Console/Commands/ReDownloadWebMentions.php +++ b/app/Console/Commands/ReDownloadWebMentions.php @@ -41,6 +41,7 @@ class ReDownloadWebMentions extends Command { $webmentions = WebMention::all(); foreach ($webmentions as $webmention) { + $this->info('Initiation re-download of ' . $webmention->source); $this->dispatch(new DownloadWebMention($webmention->source)); } } From 3c30328ca01f20fbf9b7e3fe051a0048bb524114 Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Mon, 19 Sep 2016 21:23:34 +0100 Subject: [PATCH 3/3] Bump version --- changelog.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/changelog.md b/changelog.md index be67ec53..ef74a156 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,8 @@ # Changelog +## Version 0.0.11.4 (2016-09-19) + - Better console output for the new webmention commands + ## Version 0.0.11.3 (2016-09-19) - Simplify how we filter/cache reply html - Better handling of webmention reply HTML cache