diff options
author | Andrew Dolgov <[email protected]> | 2021-05-28 14:42:14 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-05-28 14:42:14 +0300 |
commit | 92c78beb909d8955657564127c2e953ca25113e3 (patch) | |
tree | 62fea455aa7200259fccfd7ff7cfdd4b4e5afcd1 /plugins/af_readability/vendor/andreskrey/readability.php/src | |
parent | 8e1281b41ecb446b58a0c66ef04fb18afd27215d (diff) |
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)
Diffstat (limited to 'plugins/af_readability/vendor/andreskrey/readability.php/src')
-rw-r--r-- | plugins/af_readability/vendor/andreskrey/readability.php/src/Readability.php | 2 |
1 files changed, 1 insertions, 1 deletions
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 |