V7 small fixes (#1426)

This commit is contained in:
Markos Gogoulos
2025-11-11 13:15:36 +02:00
committed by GitHub
parent e80590a3aa
commit d9f299af4d
5 changed files with 13 additions and 10 deletions

View File

@@ -763,6 +763,8 @@ class Media(models.Model):
return helpers.url_from_path(self.uploaded_thumbnail.path)
if self.thumbnail:
return helpers.url_from_path(self.thumbnail.path)
if self.media_type == "audio":
return helpers.url_from_path("userlogos/poster_audio.jpg")
return None
@property