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); } diff --git a/changelog.md b/changelog.md index a029bf1e..1557a21e 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,8 @@ # Changelog +## Version 0.0.11.8 (2016-09-21) + - Fix: remove index.html from generated url + ## Version 0.0.11.7 (2016-09-21) - Fix: need to create necessary directories first