From 92c78beb909d8955657564127c2e953ca25113e3 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 28 May 2021 14:42:14 +0300 Subject: [PATCH] apply usort workaround for readability-php because its authors were unable to do so for 3 months (https://github.com/andreskrey/readability.php/issues/99) --- .../vendor/andreskrey/readability.php/src/Readability.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/af_readability/vendor/andreskrey/readability.php/src/Readability.php b/plugins/af_readability/vendor/andreskrey/readability.php/src/Readability.php index 6bcbf78d7..332c96288 100644 --- a/plugins/af_readability/vendor/andreskrey/readability.php/src/Readability.php +++ b/plugins/af_readability/vendor/andreskrey/readability.php/src/Readability.php @@ -195,7 +195,7 @@ class Readability // No luck after removing flags, just return the longest text we found during the different loops usort($this->attempts, function ($a, $b) { - return $a['textLength'] < $b['textLength']; + return $b['textLength'] - $a['textLength']; }); // But first check if we actually have something