Update ProfileController

pull/1374/head
Daniel Supernault 2019-06-09 17:21:06 -06:00
rodzic f3698d6c52
commit 610c4f3445
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 0DEF1C662C9033F7
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -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);