More notification tweaks

This commit is contained in:
Thomas Sileo
2019-07-29 22:46:53 +02:00
parent bf954adaea
commit b00263c817
2 changed files with 23 additions and 6 deletions

View File

@@ -1,3 +1,4 @@
from enum import unique
from enum import Enum
from typing import Any
from typing import Dict
@@ -7,12 +8,14 @@ from little_boxes import activitypub as ap
_SubQuery = Dict[str, Any]
@unique
class Box(Enum):
INBOX = "inbox"
OUTBOX = "outbox"
REPLIES = "replies"
@unique
class MetaKey(Enum):
NOTIFICATION = "notification"
NOTIFICATION_UNREAD = "notification_unread"