mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +00:00
Update Profile model
This commit is contained in:
parent
11749bdc6a
commit
908740b46f
1 changed files with 14 additions and 4 deletions
|
@ -275,10 +275,20 @@ class Profile extends Model
|
|||
]
|
||||
];
|
||||
break;
|
||||
|
||||
default:
|
||||
# code...
|
||||
break;
|
||||
}
|
||||
return $audience;
|
||||
}
|
||||
|
||||
public function getAudienceInbox($scope = 'public')
|
||||
{
|
||||
return $this
|
||||
->followers()
|
||||
->whereLocalProfile(false)
|
||||
->get()
|
||||
->map(function($follow) {
|
||||
return $follow->sharedInbox ?? $follow->inbox_url;
|
||||
})
|
||||
->unique()
|
||||
->toArray();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue