mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-29 18:50:59 +00:00
11 lines
265 B
Python
11 lines
265 B
Python
from hatchway import api_view
|
|
|
|
from activities.models import Emoji
|
|
from api.schemas import CustomEmoji
|
|
|
|
|
|
@api_view.get
|
|
def emojis(request) -> list[CustomEmoji]:
|
|
return [
|
|
CustomEmoji.from_emoji(e) for e in Emoji.objects.usable().filter(local=True)
|
|
]
|