Changeset - 3e1afbd6055f
[Not reviewed]
stable
0 1 0
Marc Villetard - 10 years ago 2015-06-09 10:38:25
marc.villetard@gmail.com
helpers: Fix displayed author on changelog_summary_data when no email is set in commit author (Issue #137)
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
kallithea/lib/helpers.py
Show inline comments
 
@@ -476,13 +476,13 @@ def is_hg(repository):
 
        _type = repository
 
    return _type == 'hg'
 

	
 

	
 
def user_or_none(author):
 
    email = author_email(author)
 
    if email is not None:
 
    if email:
 
        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:
0 comments (0 inline, 0 general)