mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-22 04:58:01 +01:00
#25: New Follower notifications now show the follower's avatar.
This commit is contained in:
parent
2dedaf6638
commit
c627e5f216
1 changed files with 4 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue