diff --git a/app/Console/Commands/ParseCachedWebMentions.php b/app/Console/Commands/ParseCachedWebMentions.php index 03e3d277..caf244cd 100644 --- a/app/Console/Commands/ParseCachedWebMentions.php +++ b/app/Console/Commands/ParseCachedWebMentions.php @@ -65,7 +65,7 @@ class ParseCachedWebMentions extends Command { $dir = mb_substr($filepath, mb_strlen(storage_path() . '/HTML/')); $url = str_replace(['http/', 'https/'], ['http://', 'https://'], $dir); - if (mb_substr($url, -1) == 'index.html') { + if (mb_substr($url, -10) == 'index.html') { $url = mb_substr($url, 0, mb_strlen($url) - 10); }