sync indexable settings from neodb to takahe
This commit is contained in:
parent
794d77f898
commit
803b612835
1 changed files with 4 additions and 0 deletions
|
@ -36,6 +36,10 @@ def preferences(request):
|
|||
if request.method == "POST":
|
||||
identity.anonymous_viewable = bool(request.POST.get("anonymous_viewable"))
|
||||
identity.save(update_fields=["anonymous_viewable"])
|
||||
tidentity = Takahe.get_identity(identity.pk)
|
||||
tidentity.indexable = bool(request.POST.get("anonymous_viewable"))
|
||||
tidentity.save(update_fields=["indexable"])
|
||||
|
||||
preference.default_visibility = int(request.POST.get("default_visibility"))
|
||||
preference.mastodon_default_repost = (
|
||||
int(request.POST.get("mastodon_default_repost", 0)) == 1
|
||||
|
|
Loading…
Add table
Reference in a new issue