|
|
|
@ -150,6 +150,8 @@ class ProfileController extends Controller
|
|
|
|
|
|
|
|
|
|
public function showActivityPub(Request $request, $user)
|
|
|
|
|
{
|
|
|
|
|
abort_if(!config('federation.activitypub.enabled'), 404);
|
|
|
|
|
|
|
|
|
|
if($user->status != null) {
|
|
|
|
|
return ProfileController::accountCheck($user);
|
|
|
|
|
}
|
|
|
|
@ -161,6 +163,8 @@ class ProfileController extends Controller
|
|
|
|
|
|
|
|
|
|
public function showAtomFeed(Request $request, $user)
|
|
|
|
|
{
|
|
|
|
|
abort_if(!config('federation.atom.enabled'), 404);
|
|
|
|
|
|
|
|
|
|
$profile = $user = Profile::whereNull('status')->whereNull('domain')->whereUsername($user)->whereIsPrivate(false)->firstOrFail();
|
|
|
|
|
if($profile->status != null) {
|
|
|
|
|
return $this->accountCheck($profile);
|
|
|
|
|