mirror of
https://github.com/jointakahe/takahe.git
synced 2024-12-29 00:20:29 +00:00
22 lines
701 B
Python
22 lines
701 B
Python
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,
|
|
},
|
|
"expand_content_warnings": {
|
|
"title": "Expand content warnings",
|
|
"help_text": "If content warnings should be expanded by default (not honoured by all clients)",
|
|
},
|
|
}
|
|
|
|
layout = {
|
|
"Posting": ["default_post_visibility", "expand_content_warnings"],
|
|
}
|