Fix default avatar URL

pull/2400/head
Chocobozzz 2020-01-10 10:30:08 +01:00
parent dce659fa7c
commit 62fca05de4
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
3 changed files with 4 additions and 3 deletions

View File

@ -20,7 +20,7 @@ export abstract class Actor implements ActorServer {
if (actor && actor.avatar) return absoluteAPIUrl + actor.avatar.path 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 () { static GET_DEFAULT_AVATAR_URL () {

View File

@ -145,6 +145,7 @@
<div class="pt-3 border-top video-info-channel d-flex"> <div class="pt-3 border-top video-info-channel d-flex">
<div class="video-info-channel-left d-flex"> <div class="video-info-channel-left d-flex">
<avatar-channel [video]="video"></avatar-channel> <avatar-channel [video]="video"></avatar-channel>
<div class="video-info-channel-left-links ml-1"> <div class="video-info-channel-left-links ml-1">
<a [routerLink]="[ '/video-channels', video.byVideoChannel ]" i18n-title title="Go the channel page"> <a [routerLink]="[ '/video-channels', video.byVideoChannel ]" i18n-title title="Go the channel page">
{{ video.channel.displayName }} {{ video.channel.displayName }}

View File

@ -6,7 +6,7 @@ function getEnvCli (server?: ServerInfo) {
return `NODE_ENV=test NODE_APP_INSTANCE=${server.serverNumber}` 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) => { return new Promise<string>((res, rej) => {
exec(command, (err, stdout, stderr) => { exec(command, (err, stdout, stderr) => {
if (err) return rej(err) if (err) return rej(err)