mirror of
https://github.com/koel/koel
synced 2024-11-10 06:34:14 +00:00
Album and Artist image URLs are now absolute
This commit is contained in:
parent
89c1d2e5da
commit
ddc56c28d6
2 changed files with 2 additions and 2 deletions
|
@ -127,7 +127,7 @@ class Album extends Model
|
|||
|
||||
public function getCoverAttribute($value)
|
||||
{
|
||||
return '/public/img/covers/'.($value ?: self::UNKNOWN_COVER);
|
||||
return url('/public/img/covers/'.($value ?: self::UNKNOWN_COVER));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -107,6 +107,6 @@ class Artist extends Model
|
|||
*/
|
||||
public function getImageAttribute($value)
|
||||
{
|
||||
return $value ? '/public/img/artists/'.$value : null;
|
||||
return $value ? url('/public/img/artists/'.$value) : null;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue