Improve notifications
- Keep track of unread count - "follow back" action
This commit is contained in:
parent
2ab59d9476
commit
d70c73cad7
9 changed files with 261 additions and 36 deletions
|
@ -30,6 +30,7 @@ from config import ME
|
|||
from config import USER_AGENT
|
||||
from config import USERNAME
|
||||
from tasks import Tasks
|
||||
from utils.meta import Box
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
@ -95,12 +96,6 @@ def _is_local_reply(create: ap.Create) -> bool:
|
|||
return False
|
||||
|
||||
|
||||
class Box(Enum):
|
||||
INBOX = "inbox"
|
||||
OUTBOX = "outbox"
|
||||
REPLIES = "replies"
|
||||
|
||||
|
||||
class MicroblogPubBackend(Backend):
|
||||
"""Implements a Little Boxes backend, backed by MongoDB."""
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue