upd: return empty history

This commit is contained in:
Mar0xy 2023-09-27 14:09:48 +02:00
parent aac4c8be60
commit e32b03a048
No known key found for this signature in database
GPG Key ID: 56569BBE47D2C828

View File

@ -57,7 +57,7 @@ export class ApiStatusMastodon {
public async getHistory() {
this.fastify.get<{ Params: { id: string } }>('/v1/statuses/:id/history', async (_request, reply) => {
try {
reply.code(401).send({ message: 'Not Implemented' });
reply.send([]);
} catch (e: any) {
console.error(e);
reply.code(401).send(e.response.data);