2022-12-15 15:50:15 -08:00
|
|
|
from activities.models import Emoji
|
|
|
|
from api.schemas import CustomEmoji
|
|
|
|
from api.views.base import api_router
|
|
|
|
|
|
|
|
|
|
|
|
@api_router.get("/v1/custom_emojis", response=list[CustomEmoji])
|
|
|
|
def emojis(request):
|
2022-12-20 03:39:45 -08:00
|
|
|
return [e.to_mastodon_json() for e in Emoji.objects.usable().filter(local=True)]
|