From f4543b2cf758ad1fe748df0256f6ef31cd4ba01b Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 20 Apr 2020 05:42:46 +0000 Subject: [PATCH] Fix: Wrong variable --- src/Model/Item.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Item.php b/src/Model/Item.php index 0e82189298..f6d08047b2 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -2611,7 +2611,7 @@ class Item // This sorting is important when there are hashtags that are part of other hashtags // Otherwise there could be problems with hashtags like #test and #test2 // Because of this we are sorting from the longest to the shortest tag. - usort($rawtags, function($a, $b) { + usort($tags, function($a, $b) { return strlen($b) <=> strlen($a); }); -- 2.39.5