Fixed notification thumbnail url being null

This commit is contained in:
Josef Citrine 2016-08-28 00:39:24 +01:00
parent bd6657f002
commit 555aa35c34

View file

@ -151,6 +151,9 @@ class Activity extends Model {
public function getThumbnailUrlAttribute()
{
if (!is_null($this->resource))
return "/images/icons/profile_small.png";
switch ($this->resource_type) {
case User::class:
return $this->resource->getAvatarUrl(Image::THUMBNAIL);