upd: add history endpoint, make sure all areas use new convertAccount
This commit is contained in:
parent
8fd669ff7d
commit
c53323d237
6 changed files with 104 additions and 28 deletions
|
|
@ -74,7 +74,8 @@ export class ApiStatusMastodon {
|
|||
public async getHistory() {
|
||||
this.fastify.get<{ Params: { id: string } }>('/v1/statuses/:id/history', async (_request, reply) => {
|
||||
try {
|
||||
reply.send([]);
|
||||
const edits = await this.mastoconverter.getEdits(_request.params.id);
|
||||
reply.send(edits);
|
||||
} catch (e: any) {
|
||||
console.error(e);
|
||||
reply.code(401).send(e.response.data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue