mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-22 04:58:01 +01:00
Fixed notification thumbnail url being null
This commit is contained in:
parent
bd6657f002
commit
555aa35c34
1 changed files with 3 additions and 0 deletions
|
@ -151,6 +151,9 @@ class Activity extends Model {
|
||||||
|
|
||||||
public function getThumbnailUrlAttribute()
|
public function getThumbnailUrlAttribute()
|
||||||
{
|
{
|
||||||
|
if (!is_null($this->resource))
|
||||||
|
return "/images/icons/profile_small.png";
|
||||||
|
|
||||||
switch ($this->resource_type) {
|
switch ($this->resource_type) {
|
||||||
case User::class:
|
case User::class:
|
||||||
return $this->resource->getAvatarUrl(Image::THUMBNAIL);
|
return $this->resource->getAvatarUrl(Image::THUMBNAIL);
|
||||||
|
|
Loading…
Reference in a new issue