mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-25 06:27:59 +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,8 +118,12 @@ class Activity extends Model
|
|||
|
||||
public function getUrlAttribute()
|
||||
{
|
||||
if (static::TYPE_NEW_FOLLOWER === $this->activity_type) {
|
||||
return $this->initiatingUser->url;
|
||||
} else {
|
||||
return $this->resource->url;
|
||||
}
|
||||
}
|
||||
|
||||
public function getResourceTypeAttribute($value)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue