Skip to content
Snippets Groups Projects
Verified Commit 0758e382 authored by Mar0xy's avatar Mar0xy
Browse files

upd: masto api support more types

parent 487e3978
No related branches found
No related tags found
No related merge requests found
import { Inject, Injectable } from '@nestjs/common';
import megalodon, { Entity, MegalodonInterface } from 'megalodon';
import multipart from '@fastify/multipart';
import { IsNull } from 'typeorm';
import multer from 'fastify-multer';
import type { UsersRepository } from '@/models/_.js';
......@@ -42,6 +43,13 @@ export class MastodonApiServerService {
fastify.register(multer.contentParser);
fastify.register(multipart, {
limits: {
fileSize: this.config.maxFileSize ?? 262144000,
files: 1,
},
});
fastify.get('/v1/custom_emojis', async (_request, reply) => {
const BASE_URL = `${_request.protocol}://${_request.hostname}`;
const accessTokens = _request.headers.authorization;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment