diff options
| author | Mar0xy <marie@kaifa.ch> | 2023-10-31 11:49:34 +0100 |
|---|---|---|
| committer | Mar0xy <marie@kaifa.ch> | 2023-10-31 11:49:34 +0100 |
| commit | c18efe0042a8f87a7fc204e6f7bc29ff4f505e7e (patch) | |
| tree | 5897cf8bed94a90b93c2d0005752928d1727d9e5 /packages/backend/src/server/api | |
| parent | fix: suggestions (diff) | |
| download | sharkey-c18efe0042a8f87a7fc204e6f7bc29ff4f505e7e.tar.gz sharkey-c18efe0042a8f87a7fc204e6f7bc29ff4f505e7e.tar.bz2 sharkey-c18efe0042a8f87a7fc204e6f7bc29ff4f505e7e.zip | |
upd: add empty return on trends/links
Diffstat (limited to 'packages/backend/src/server/api')
| -rw-r--r-- | packages/backend/src/server/api/mastodon/MastodonApiServerService.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/backend/src/server/api/mastodon/MastodonApiServerService.ts b/packages/backend/src/server/api/mastodon/MastodonApiServerService.ts index 8a93392599..c0e4ea80dc 100644 --- a/packages/backend/src/server/api/mastodon/MastodonApiServerService.ts +++ b/packages/backend/src/server/api/mastodon/MastodonApiServerService.ts @@ -221,6 +221,11 @@ export class MastodonApiServerService { } }); + fastify.get('/v1/trends/links', async (_request, reply) => { + // As we do not have any system for news/links this will just return empty + reply.send([]); + }); + fastify.post('/v1/apps', async (_request, reply) => { const BASE_URL = `${_request.protocol}://${_request.hostname}`; const client = getClient(BASE_URL, ''); // we are using this here, because in private mode some info isnt |