From c627e5f216c0d48768231d12724dc0f0fa32e205 Mon Sep 17 00:00:00 2001 From: Peter Deltchev Date: Mon, 26 Dec 2016 19:45:31 -0800 Subject: [PATCH] #25: New Follower notifications now show the follower's avatar. --- app/Models/Activity.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Models/Activity.php b/app/Models/Activity.php index 273ba740..20c0108f 100644 --- a/app/Models/Activity.php +++ b/app/Models/Activity.php @@ -173,7 +173,10 @@ class Activity extends Model public function getThumbnailUrlAttribute() { - if (static::TYPE_CONTENT_FAVOURITED === $this->activity_type) { + if ( + in_array($this->activity_type, + [static::TYPE_CONTENT_FAVOURITED, static::TYPE_NEW_FOLLOWER]) + ) { return $this->initiatingUser->getAvatarUrl(Image::SMALL); } else { switch ($this->resource_type) {