Emoji API should not need auth

Fixes #204
This commit is contained in:
Andrew Godwin 2022-12-19 00:12:33 +00:00
parent cfa97b9740
commit 5844b8c18c
1 changed files with 0 additions and 2 deletions

View File

@ -1,10 +1,8 @@
from activities.models import Emoji
from api.decorators import identity_required
from api.schemas import CustomEmoji
from api.views.base import api_router
@api_router.get("/v1/custom_emojis", response=list[CustomEmoji])
@identity_required
def emojis(request):
return [e.to_mastodon_json() for e in Emoji.objects.usable()]