kopia lustrzana https://github.com/pixelfed/pixelfed
Update Profile model
rodzic
11749bdc6a
commit
908740b46f
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue