pyfedi/app/constants.py

34 lines
755 B
Python
Raw Normal View History

REQUEST_TIMEOUT = 2
POST_TYPE_LINK = 1
POST_TYPE_ARTICLE = 2
POST_TYPE_IMAGE = 3
POST_TYPE_VIDEO = 4
2023-09-17 02:19:51 -07:00
POST_TYPE_POLL = 5
2023-08-22 02:24:11 -07:00
DATETIME_MS_FORMAT = "%Y-%m-%dT%H:%M:%S.%fZ"
2023-10-18 02:23:59 -07:00
# Community subscription levels
SUBSCRIPTION_OWNER = 3
SUBSCRIPTION_MODERATOR = 2
SUBSCRIPTION_MEMBER = 1
SUBSCRIPTION_NONMEMBER = 0
SUBSCRIPTION_PENDING = -1
SUBSCRIPTION_BANNED = -2
2024-03-26 02:18:05 -07:00
THREAD_CUTOFF_DEPTH = 4
REPORT_STATE_NEW = 0
REPORT_STATE_ESCALATED = 1
REPORT_STATE_APPEALED = 2
REPORT_STATE_RESOLVED = 3
REPORT_STATE_DISCARDED = -1
2024-04-19 00:20:09 -07:00
# different types of content notification that people can have. e.g. when a new post is made by a user or in a community.
# see NotificationSubscription in models.py
NOTIF_USER = 0
NOTIF_COMMUNITY = 1
NOTIF_TOPIC = 2
NOTIF_POST = 3
NOTIF_REPLY = 4