From e58dc726c5e40ff30942739f86d2329fb29f763c Mon Sep 17 00:00:00 2001 From: zotlabs Date: Thu, 2 Mar 2017 17:32:43 -0800 Subject: activity widget - like the forum widget but represents unseen activity by author. Still experimental until it can be tested with diaspora xchans, which may require additional urlencoding. --- include/text.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/text.php') diff --git a/include/text.php b/include/text.php index 63248a0a6..1abed81bf 100644 --- a/include/text.php +++ b/include/text.php @@ -854,6 +854,11 @@ function tag_sort_length($a,$b) { return((mb_strlen($b) < mb_strlen($a)) ? (-1) : 1); } +function total_sort($a,$b) { + if($a['total'] == $b['total']) + return 0; + return(($b['total'] < $a['total']) ? 1 : (-1)); +} /** -- cgit v1.2.3