upd: add empty return on trends/links

This commit is contained in:
Mar0xy 2023-10-31 11:49:34 +01:00
parent 98389114a8
commit c18efe0042
No known key found for this signature in database
GPG Key ID: 56569BBE47D2C828
1 changed files with 5 additions and 0 deletions

View File

@ -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) => { fastify.post('/v1/apps', async (_request, reply) => {
const BASE_URL = `${_request.protocol}://${_request.hostname}`; const BASE_URL = `${_request.protocol}://${_request.hostname}`;
const client = getClient(BASE_URL, ''); // we are using this here, because in private mode some info isnt const client = getClient(BASE_URL, ''); // we are using this here, because in private mode some info isnt