diff --git a/inbox.py b/inbox.py index 09e073547..26d9e5268 100644 --- a/inbox.py +++ b/inbox.py @@ -756,7 +756,7 @@ def _personReceiveUpdate(baseDir: str, ' ' + str(personJson)) domainFull = getFullDomain(domain, port) updateDomainFull = getFullDomain(updateDomain, updatePort) - usersPaths = ('users', 'profile', 'channel', 'accounts') + usersPaths = ('users', 'profile', 'channel', 'accounts', 'u') usersStrFound = False for usersStr in usersPaths: actor = updateDomainFull + '/' + usersStr + '/' + updateNickname diff --git a/utils.py b/utils.py index 328278e27..dae7af786 100644 --- a/utils.py +++ b/utils.py @@ -67,7 +67,7 @@ def getLockedAccount(actorJson: {}) -> bool: def hasUsersPath(pathStr: str) -> bool: """Whether there is a /users/ path (or equivalent) in the given string """ - usersList = ('users', 'accounts', 'channel', 'profile') + usersList = ('users', 'accounts', 'channel', 'profile', 'u') for usersStr in usersList: if '/' + usersStr + '/' in pathStr: return True @@ -1224,7 +1224,7 @@ def _isReservedName(nickname: str) -> bool: 'activity', 'undo', 'pinned', 'reply', 'replies', 'question', 'like', 'likes', 'users', 'statuses', 'tags', - 'accounts', 'channels', 'profile', + 'accounts', 'channels', 'profile', 'u', 'updates', 'repeat', 'announce', 'shares', 'fonts', 'icons', 'avatars') if nickname in reservedNames: