#25: Corrected "new follower" notifications to point to the follower's profile.

This commit is contained in:
Peter Deltchev 2016-12-28 07:05:24 -08:00
parent c627e5f216
commit b6b3f036cc

View file

@ -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)