mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-25 16:51:00 +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)
|
|
]
|