#25: New Follower notifications now show the follower's avatar.

This commit is contained in:
Peter Deltchev 2016-12-26 19:45:31 -08:00
parent 2dedaf6638
commit c627e5f216

View file

@ -173,7 +173,10 @@ class Activity extends Model
public function getThumbnailUrlAttribute() 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); return $this->initiatingUser->getAvatarUrl(Image::SMALL);
} else { } else {
switch ($this->resource_type) { switch ($this->resource_type) {