pyfedi/app/constants.py

18 lines
350 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 21:19:51 +12:00
POST_TYPE_POLL = 5
2023-08-22 21:24:11 +12:00
DATETIME_MS_FORMAT = "%Y-%m-%dT%H:%M:%S.%fZ"
2023-10-18 22:23:59 +13:00
# Community subscription levels
SUBSCRIPTION_OWNER = 3
SUBSCRIPTION_MODERATOR = 2
SUBSCRIPTION_MEMBER = 1
SUBSCRIPTION_NONMEMBER = 0
SUBSCRIPTION_BANNED = -1
THREAD_CUTOFF_DEPTH = 4