Fix default avatar URL
authorChocobozzz <me@florianbigard.com>
Fri, 10 Jan 2020 09:30:08 +0000 (10:30 +0100)
committerChocobozzz <me@florianbigard.com>
Fri, 10 Jan 2020 09:30:39 +0000 (10:30 +0100)
client/src/app/shared/actor/actor.model.ts
client/src/app/videos/+video-watch/video-watch.component.html
shared/extra-utils/cli/cli.ts

index 9cc51b9489027cac44e8ee6713532899a4603870..0e5060f67838b64d7ad8c7af24d1a901913f881e 100644 (file)
@@ -20,7 +20,7 @@ export abstract class Actor implements ActorServer {
 
     if (actor && actor.avatar) return absoluteAPIUrl + actor.avatar.path
 
-    this.GET_DEFAULT_AVATAR_URL()
+    return this.GET_DEFAULT_AVATAR_URL()
   }
 
   static GET_DEFAULT_AVATAR_URL () {
index 9f1b51b2d974f4f6b68db98bf25564de77bb0f28..bc3a3ffdd3e6c084a0acf88339ed3f1d6cd0b522 100644 (file)
           <div class="pt-3 border-top video-info-channel d-flex">
             <div class="video-info-channel-left d-flex">
               <avatar-channel [video]="video"></avatar-channel>
+
               <div class="video-info-channel-left-links ml-1">
                 <a [routerLink]="[ '/video-channels', video.byVideoChannel ]" i18n-title title="Go the channel page">
                   {{ video.channel.displayName }}
         <div class="video-attribute">
           <span i18n class="video-attribute-label">Duration</span>
           <span class="video-attribute-value">{{ video.duration | myVideoDurationFormatter }}</span>
-        </div>  
+        </div>
       </div>
 
       <my-video-comments
index d532b62b02e4dbf8b86b9f65583741fc12413d2b..54d05e9c621459c03603bed2f9a177402d839fdf 100644 (file)
@@ -6,7 +6,7 @@ function getEnvCli (server?: ServerInfo) {
   return `NODE_ENV=test NODE_APP_INSTANCE=${server.serverNumber}`
 }
 
-async function execCLI (command: string,) {
+async function execCLI (command: string) {
   return new Promise<string>((res, rej) => {
     exec(command, (err, stdout, stderr) => {
       if (err) return rej(err)