Don’t parse backups
This commit is contained in:
parent
6804cc3776
commit
54079e407c
1 changed files with 9 additions and 7 deletions
|
@ -41,6 +41,7 @@ class ParseCachedWebMentions extends Command
|
||||||
{
|
{
|
||||||
$HTMLfiles = $filesystem->allFiles(storage_path() . '/HTML');
|
$HTMLfiles = $filesystem->allFiles(storage_path() . '/HTML');
|
||||||
foreach ($HTMLfiles as $file) {
|
foreach ($HTMLfiles as $file) {
|
||||||
|
if ($file->getExtension() != 'backup') { //we don’t want to parse.backup files
|
||||||
$filepath = $file->getPathname();
|
$filepath = $file->getPathname();
|
||||||
$html = $filesystem->get($filepath);
|
$html = $filesystem->get($filepath);
|
||||||
$url = $this->URLFromFilename($filepath);
|
$url = $this->URLFromFilename($filepath);
|
||||||
|
@ -50,6 +51,7 @@ class ParseCachedWebMentions extends Command
|
||||||
$webmention->save();
|
$webmention->save();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Determine the source URL from a filename.
|
* Determine the source URL from a filename.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue