it should be MASTODON_ALLOW_ANY_SITE

This commit is contained in:
Your Name 2023-07-15 12:28:30 -04:00 committed by Henri Dickson
parent 506f94229a
commit afca07c92a
2 changed files with 2 additions and 2 deletions

View file

@ -259,7 +259,7 @@ SYNC_FILE_PATH_ROOT = "sync/"
EXPORT_FILE_PATH_ROOT = "export/"
# Allow user to login via any Mastodon/Pleroma sites
ALLOW_ANY_SITE = False
MASTODON_ALLOW_ANY_SITE = False
# Allow user to create account with email (and link to Mastodon account later)
ALLOW_EMAIL_ONLY_ACCOUNT = False

View file

@ -17,7 +17,7 @@ def move_username(apps, schema_editor):
def clear_username(apps, schema_editor):
User = apps.get_model("users", "User")
for u in User.objects.all():
u.username = None if settings.ALLOW_ANY_SITE else u.mastodon_username
u.username = None if settings.MASTODON_ALLOW_ANY_SITE else u.mastodon_username
u.save()