2023-02-13 20:17:26 -08:00
|
|
|
from hatchway import api_view
|
|
|
|
|
2022-12-15 15:50:15 -08:00
|
|
|
from activities.models import Emoji
|
|
|
|
from api.schemas import CustomEmoji
|
|
|
|
|
|
|
|
|
2023-02-07 11:07:15 -08:00
|
|
|
@api_view.get
|
|
|
|
def emojis(request) -> list[CustomEmoji]:
|
|
|
|
return [
|
|
|
|
CustomEmoji.from_emoji(e) for e in Emoji.objects.usable().filter(local=True)
|
|
|
|
]
|