]> git.mxchange.org Git - friendica.git/commitdiff
API: Trending tags are added
authorMichael <heluecht@pirati.ca>
Mon, 28 Nov 2022 07:08:01 +0000 (07:08 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 28 Nov 2022 07:08:01 +0000 (07:08 +0000)
doc/API-Mastodon.md
static/routes.config.php

index 6c6a1691a29ea7a949ce232712f1161d7a9ca782..d77218f67008d0bc271ec71a95a57bb2ee992552 100644 (file)
@@ -135,6 +135,7 @@ These endpoints use the [Mastodon API entities](https://docs.joinmastodon.org/en
 - [`GET /api/v1/timelines/public`](https://docs.joinmastodon.org/methods/timelines/)
 - [`GET /api/v1/timelines/tag/:hashtag`](https://docs.joinmastodon.org/methods/timelines/)
 - [`GET /api/v1/trends`](https://docs.joinmastodon.org/methods/instance/trends/)
+- [`GET /api/v1/trends/tags`](https://docs.joinmastodon.org/methods/trends/#tags)
 - [`GET /api/v2/search`](https://docs.joinmastodon.org/methods/search/)
 
 
index 42333e65fa2dd12782992053dd2fb9753fbc48d2..9b2d3d93654512cf06d41fe52f0b0333004bbf21 100644 (file)
@@ -298,7 +298,7 @@ return [
                        '/trends'                            => [Module\Api\Mastodon\Trends::class,                   [R::GET         ]],
                        '/trends/links'                      => [Module\Api\Mastodon\Unimplemented::class,            [R::GET         ]], // not implemented
                        '/trends/statuses'                   => [Module\Api\Mastodon\Unimplemented::class,            [R::GET         ]], // not implemented
-                       '/trends/tags'                       => [Module\Api\Mastodon\Unimplemented::class,            [R::GET         ]], // not implemented
+                       '/trends/tags'                       => [Module\Api\Mastodon\Trends::class,                   [R::GET         ]],
                ],
                '/v{version:\d+}' => [
                        '/admin/accounts'                    => [Module\Api\Mastodon\Unimplemented::class,            [R::GET         ]], // not supported