mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-22 04:58:01 +01:00
#25: Corrected "new follower" notifications to point to the follower's profile.
This commit is contained in:
parent
c627e5f216
commit
b6b3f036cc
1 changed files with 5 additions and 1 deletions
|
@ -118,7 +118,11 @@ class Activity extends Model
|
||||||
|
|
||||||
public function getUrlAttribute()
|
public function getUrlAttribute()
|
||||||
{
|
{
|
||||||
return $this->resource->url;
|
if (static::TYPE_NEW_FOLLOWER === $this->activity_type) {
|
||||||
|
return $this->initiatingUser->url;
|
||||||
|
} else {
|
||||||
|
return $this->resource->url;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getResourceTypeAttribute($value)
|
public function getResourceTypeAttribute($value)
|
||||||
|
|
Loading…
Reference in a new issue