# HG changeset patch # User Mads Kiilerich # Date 2016-01-05 16:30:12 # Node ID 2eaabe413ef6deda0ea6b717402d3a932efe2dd8 # Parent f8a714c2c5a1e1b037d82dd96fec435c9cec6cf8 lib: drop fuzzy matching on full user names in user_or_none The fallback of checking for matching user names is expensive, untested, fragile, and almost useless. diff --git a/kallithea/lib/helpers.py b/kallithea/lib/helpers.py --- a/kallithea/lib/helpers.py +++ b/kallithea/lib/helpers.py @@ -483,11 +483,6 @@ def user_or_none(author): user = User.get_by_email(email, case_insensitive=True, cache=True) if user is not None: return user - - user = User.get_by_username(author_name(author), case_insensitive=True, cache=True) - if user is not None: - return user - return None def email_or_none(author):