Add user default privacy setting to the privacy_select and user preferences

This commit is contained in:
Ilona Brand
2021-02-13 19:42:25 -06:00
parent 7b749d6476
commit 73c30e8c9a
5 changed files with 34 additions and 6 deletions

View File

@ -5,16 +5,16 @@
<label class="is-sr-only" for="privacy-{{ uuid }}">Post privacy</label>
{% endif %}
<select name="privacy" id="privacy-{{ uuid }}">
<option value="public" {% if not current or current == 'public' %}selected{% endif %}>
<option value="public" {% if user.default_post_privacy == 'public' or current == 'public' %}selected{% endif %}>
Public
</option>
<option value="unlisted" {% if current == 'unlisted' %}selected{% endif %}>
<option value="unlisted" {% if user.default_post_privacy == 'unlisted' or current == 'unlisted' %}selected{% endif %}>
Unlisted
</option>
<option value="followers" {% if current == 'followers' %}selected{% endif %}>
<option value="followers" {% if user.default_post_privacy == 'followers' or current == 'followers' %}selected{% endif %}>
Followers
</option>
<option value="direct" {% if current == 'direct' %}selected{% endif %}>
<option value="direct" {% if user.default_post_privacy == 'direct' or current == 'direct' %}selected{% endif %}>
Private
</option>
</select>