mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +00:00
Update Follower model, add permalink method
This commit is contained in:
parent
84d1e3b731
commit
2876ec30d4
1 changed files with 6 additions and 0 deletions
|
@ -21,6 +21,12 @@ class Follower extends Model
|
|||
return $this->belongsTo(Profile::class, 'following_id', 'id');
|
||||
}
|
||||
|
||||
public function permalink()
|
||||
{
|
||||
$path = $this->actor->permalink("/follow/{$this->id}");
|
||||
return url($path);
|
||||
}
|
||||
|
||||
public function toText()
|
||||
{
|
||||
$actorName = $this->actor->username;
|
||||
|
|
Loading…
Reference in a new issue