upd: add empty return on trends/links
This commit is contained in:
parent
98389114a8
commit
c18efe0042
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue