mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-25 15:55:22 +00:00
Update Profile model, add new AP methods
This commit is contained in:
parent
8b08983c38
commit
63ca2a209d
1 changed files with 15 additions and 0 deletions
|
@ -205,4 +205,19 @@ class Profile extends Model
|
|||
{
|
||||
return $this->hasMany(Media::class, 'profile_id');
|
||||
}
|
||||
|
||||
public function inboxUrl()
|
||||
{
|
||||
return $this->inbox_url ?? $this->permalink('/inbox');
|
||||
}
|
||||
|
||||
public function outboxUrl()
|
||||
{
|
||||
return $this->outbox_url ?? $this->permalink('/outbox');
|
||||
}
|
||||
|
||||
public function sharedInbox()
|
||||
{
|
||||
return $this->sharedInbox ?? $this->inboxUrl();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue