diff --git a/app/Models/Activity.php b/app/Models/Activity.php index f9c1661f..4fcdebda 100644 --- a/app/Models/Activity.php +++ b/app/Models/Activity.php @@ -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);