From 7898f9cccb9edd62cf6e2f2f20aa3df827067418 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Mon, 28 Nov 2022 21:42:34 +0100 Subject: [PATCH] Update src/Module/Api/Mastodon/Trends/Links.php Co-authored-by: Hypolite Petovan --- src/Module/Api/Mastodon/Trends/Links.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Module/Api/Mastodon/Trends/Links.php b/src/Module/Api/Mastodon/Trends/Links.php index ee535c7f3..b41b1d6ea 100644 --- a/src/Module/Api/Mastodon/Trends/Links.php +++ b/src/Module/Api/Mastodon/Trends/Links.php @@ -50,7 +50,7 @@ class Links extends BaseApi $trending = []; $statuses = Post::selectPostThread(['uri-id', 'total-comments', 'total-actors'], $condition, ['limit' => $request['limit'], 'order' => ['total-actors' => true]]); while ($status = Post::fetch($statuses)) { - $history = [['day' => (string)time(), 'uses' => (string)$status['total-comments'], 'accounts' => (string)$status['total-actors']]]; + $history = [['day' => (string)time(), 'uses' => (string)$status['total-comments'], 'accounts' => (string)$status['total-actors']]]; $trending[] = DI::mstdnCard()->createFromUriId($status['uri-id'], $history)->toArray(); } DBA::close($statuses);