diff options
author | Michael Manfre | 2022-11-25 21:33:46 -0500 |
---|---|---|
committer | GitHub | 2022-11-25 19:33:46 -0700 |
commit | d60ba9a0515aed0b8235a7738a5fecd8fd78f859 (patch) | |
tree | d571851b37d2b5c4a1f122e6fbf3890947ee7af2 /activities/views/posts.py | |
parent | ab7a8cb120fe905562281b331a08e87abeff0fbe (diff) | |
download | takahe-d60ba9a0515aed0b8235a7738a5fecd8fd78f859.tar.gz takahe-d60ba9a0515aed0b8235a7738a5fecd8fd78f859.tar.bz2 takahe-d60ba9a0515aed0b8235a7738a5fecd8fd78f859.zip |
Added default post visibility
Diffstat (limited to 'activities/views/posts.py')
-rw-r--r-- | activities/views/posts.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/activities/views/posts.py b/activities/views/posts.py index 268a3fe..8cd91a1 100644 --- a/activities/views/posts.py +++ b/activities/views/posts.py @@ -202,6 +202,9 @@ class Compose(FormView): def get_initial(self): initial = super().get_initial() + initial[ + "visibility" + ] = self.request.identity.config_identity.default_post_visibility if self.reply_to: initial["reply_to"] = self.reply_to.pk initial["visibility"] = Post.Visibilities.unlisted |