1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-25 23:02:26 +00:00

fix creator_name is None (#5456)

This commit is contained in:
WJH
2023-04-26 13:48:28 +08:00
committed by GitHub
parent 6fe6dc84e1
commit cbc174a23f

View File

@@ -49,6 +49,8 @@ def get_file_history_info(commit, avatar_size):
info = {}
creator_name = getattr(commit, 'creator_name', '')
if creator_name is None:
creator_name = ''
url, is_default, date_uploaded = api_avatar_url(creator_name, avatar_size)
info['creator_avatar_url'] = url