2023-08-10 21:13:37 +12:00
|
|
|
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-08-29 22:01:06 +12:00
|
|
|
|
2023-10-18 22:23:59 +13:00
|
|
|
# Community subscription levels
|
2023-08-29 22:01:06 +12:00
|
|
|
SUBSCRIPTION_OWNER = 3
|
|
|
|
SUBSCRIPTION_MODERATOR = 2
|
|
|
|
SUBSCRIPTION_MEMBER = 1
|
|
|
|
SUBSCRIPTION_NONMEMBER = 0
|
2023-12-03 22:41:15 +13:00
|
|
|
SUBSCRIPTION_PENDING = -1
|
|
|
|
SUBSCRIPTION_BANNED = -2
|
2023-09-08 20:04:01 +12:00
|
|
|
|
2024-03-26 22:18:05 +13: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 19:20:09 +12: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
|
2024-05-30 01:45:57 +01:00
|
|
|
|
2024-06-27 15:19:32 +08:00
|
|
|
ROLE_STAFF = 3
|
|
|
|
ROLE_ADMIN = 4
|
|
|
|
|
2024-05-30 01:45:57 +01:00
|
|
|
MICROBLOG_APPS = ["mastodon", "misskey", "akkoma", "iceshrimp", "pleroma"]
|
2024-11-18 15:56:47 +00:00
|
|
|
|
|
|
|
APLOG_IN = True
|
|
|
|
|
|
|
|
APLOG_MONITOR = (True, 'Debug this')
|
|
|
|
|
|
|
|
APLOG_SUCCESS = (True, 'success')
|
|
|
|
APLOG_FAILURE = (True, 'failure')
|
|
|
|
APLOG_IGNORED = (True, 'ignored')
|
|
|
|
APLOG_PROCESSING = (True, 'processing')
|
|
|
|
|
|
|
|
APLOG_NOTYPE = (True, 'Unknown')
|
|
|
|
APLOG_DUPLICATE = (True, 'Duplicate')
|
|
|
|
APLOG_FOLLOW = (True, 'Follow')
|
|
|
|
APLOG_ACCEPT = (True, 'Accept')
|
|
|
|
APLOG_DELETE = (True, 'Delete')
|
|
|
|
APLOG_CHATMESSAGE = (True, 'Create ChatMessage')
|
|
|
|
APLOG_CREATE = (True, 'Create')
|
|
|
|
APLOG_UPDATE = (True, 'Update')
|
|
|
|
APLOG_LIKE = (True, 'Like')
|
|
|
|
APLOG_DISLIKE = (True, 'Dislike')
|
|
|
|
APLOG_REPORT = (True, 'Report')
|
|
|
|
APLOG_USERBAN = (True, 'User Ban')
|
|
|
|
APLOG_LOCK = (True, 'Post Lock')
|
|
|
|
|
|
|
|
APLOG_UNDO_FOLLOW = (True, 'Undo Follow')
|
|
|
|
APLOG_UNDO_DELETE = (True, 'Undo Delete')
|
|
|
|
APLOG_UNDO_VOTE = (True, 'Undo Vote')
|
|
|
|
APLOG_UNDO_USERBAN = (True, 'Undo User Ban')
|
|
|
|
|
|
|
|
APLOG_ADD = (True, 'Add Mod/Sticky')
|
|
|
|
APLOG_REMOVE = (True, 'Remove Mod/Sticky')
|
|
|
|
|
|
|
|
APLOG_ANNOUNCE = (True, 'Announce')
|
|
|
|
APLOG_PT_VIEW = (True, 'PeerTube View')
|