]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/video/video-thumbnail.component.html
Correctly handle error when remote instance is down
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / video / video-thumbnail.component.html
index 5c698e8f62e47884beb6c1e8a5c5225f03d1316e..971f352ba3eee20ce27197f3f507002b2e85206a 100644 (file)
@@ -1,8 +1,8 @@
 <a
   [routerLink]="['/videos/watch', video.uuid]" [attr.title]="video.name"
-class="video-thumbnail"
+  class="video-thumbnail"
 >
-<img [attr.src]="video.thumbnailUrl" alt="video thumbnail" [ngClass]="{ 'blur-filter': nsfw }" />
+<img [attr.src]="getImageUrl()" [ngClass]="{ 'blur-filter': nsfw }" />
 
 <div class="video-thumbnail-overlay">
   {{ video.durationLabel }}