2023-05-04 04:42:37 +00:00
|
|
|
from activities.models.post import Post
|
|
|
|
from users.views.settings.settings_page import SettingsPage
|
|
|
|
|
|
|
|
|
|
|
|
class PostingPage(SettingsPage):
|
|
|
|
section = "posting"
|
|
|
|
|
|
|
|
options = {
|
|
|
|
"default_post_visibility": {
|
|
|
|
"title": "Default Post Visibility",
|
|
|
|
"help_text": "Visibility to use as default for new posts.",
|
|
|
|
"choices": Post.Visibilities.choices,
|
|
|
|
},
|
2023-05-13 17:07:57 +00:00
|
|
|
"expand_content_warnings": {
|
|
|
|
"title": "Expand content warnings",
|
|
|
|
"help_text": "If content warnings should be expanded by default (not honoured by all clients)",
|
|
|
|
},
|
2023-05-04 04:42:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
layout = {
|
2023-05-13 17:07:57 +00:00
|
|
|
"Posting": ["default_post_visibility", "expand_content_warnings"],
|
2023-05-04 04:42:37 +00:00
|
|
|
}
|