Skip to content

Commit

Permalink
fix(likes): likes popup will show recent likes first
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalsem committed Feb 6, 2020
1 parent 5fced49 commit 9b0bf45
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mod/likes/views/default/likes/popup.php
@@ -1,5 +1,7 @@
<?php

use Elgg\Database\Clauses\OrderByClause;

$guid = get_input("guid");

if (!get_entity($guid)) {
Expand All @@ -12,6 +14,7 @@
'annotation_name' => 'likes',
'limit' => 99,
'pagination' => false,
'order_by' => new OrderByClause('n_table.time_created', 'desc'),
]);

echo elgg_format_element('div', ['class' => 'elgg-likes-popup'], $list);

0 comments on commit 9b0bf45

Please sign in to comment.