Daniel Supernault преди 6 години
родител
ревизия
836030c527
променени са 1 файла, в които са добавени 5 реда и са изтрити 2 реда
  1. 5 2
      app/Follower.php

+ 5 - 2
app/Follower.php

@@ -6,6 +6,9 @@ use Illuminate\Database\Eloquent\Model;
 
 
 class Follower extends Model
 class Follower extends Model
 {
 {
+
+    protected $fillable = ['profile_id', 'following_id', 'local_profile'];
+
     public function actor()
     public function actor()
     {
     {
         return $this->belongsTo(Profile::class, 'profile_id', 'id');
         return $this->belongsTo(Profile::class, 'profile_id', 'id');
@@ -21,9 +24,9 @@ class Follower extends Model
         return $this->belongsTo(Profile::class, 'following_id', 'id');
         return $this->belongsTo(Profile::class, 'following_id', 'id');
     }
     }
 
 
-    public function permalink()
+    public function permalink($append = null)
     {
     {
-        $path = $this->actor->permalink("/follow/{$this->id}");
+        $path = $this->actor->permalink("/follow/{$this->id}{$append}");
         return url($path);
         return url($path);
     }
     }