From 1c625007635c621cfa0555a94a950e7acb6f80c7 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 13 Aug 2020 17:21:09 +0100 Subject: [PATCH] Don't allow accounts as a username --- utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils.py b/utils.py index 298ed54fe..dd1a330b4 100644 --- a/utils.py +++ b/utils.py @@ -584,12 +584,13 @@ def validNickname(domain: str, nickname: str) -> bool: if nickname == domain: return False reservedNames = ('inbox', 'dm', 'outbox', 'following', - 'public', 'followers', 'profile', + 'public', 'followers', 'channel', 'capabilities', 'calendar', 'tlreplies', 'tlmedia', 'tlblogs', 'moderation', 'activity', 'undo', 'reply', 'replies', 'question', 'like', 'likes', 'users', 'statuses', + 'accounts', 'channels', 'profile', 'updates', 'repeat', 'announce', 'shares', 'fonts', 'icons') if nickname in reservedNames: