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)); } }