]> git.mxchange.org Git - friendica.git/commitdiff
Update src/Module/Api/Mastodon/Trends/Links.php
authorMichael Vogel <icarus@dabo.de>
Mon, 28 Nov 2022 20:42:34 +0000 (21:42 +0100)
committerGitHub <noreply@github.com>
Mon, 28 Nov 2022 20:42:34 +0000 (21:42 +0100)
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
src/Module/Api/Mastodon/Trends/Links.php

index ee535c7f3cbaa2822cede8b9b275250b6ba98862..b41b1d6eaa8f24f708b59e3d88b2d0aeb06be206 100644 (file)
@@ -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);