diff --git a/app/Models/Activity.php b/app/Models/Activity.php index 20c0108f..63ca536b 100644 --- a/app/Models/Activity.php +++ b/app/Models/Activity.php @@ -118,7 +118,11 @@ class Activity extends Model 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)