Skip to content

Commit

Permalink
Fix speaker video view from video platform (#151)
Browse files Browse the repository at this point in the history
* get_avartar_source and get_avatar_license to return a string
  • Loading branch information
lcduong authored Jul 29, 2024
1 parent 2acbfa2 commit e262fe4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pretalx/api/serializers/speaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ def get_avatar(obj):
@staticmethod
def get_avatar_source(obj):
if obj.user.has_avatar and obj.user.avatar_source != '':
return obj.user.avatar_source(event=obj.event)
return obj.user.avatar_source

@staticmethod
def get_avatar_license(obj):
if obj.user.has_avatar and obj.user.avatar_license != '':
return obj.user.avatar_license(event=obj.event)
return obj.user.avatar_license

@staticmethod
def get_submissions(obj):
Expand Down

0 comments on commit e262fe4

Please sign in to comment.