Improve Block support

This commit is contained in:
Thomas Sileo 2022-10-23 16:37:24 +02:00
parent 2853bf2a28
commit 3729500e3e
4 changed files with 126 additions and 10 deletions

View file

@ -551,9 +551,14 @@ class NotificationType(str, enum.Enum):
UPDATED_WEBMENTION = "updated_webmention"
DELETED_WEBMENTION = "deleted_webmention"
# incoming
BLOCKED = "blocked"
UNBLOCKED = "unblocked"
# outgoing
BLOCK = "block"
UNBLOCK = "unblock"
class Notification(Base):
__tablename__ = "notifications"