1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-25 01:05:36 +00:00

Update ProfileController

This commit is contained in:
Daniel Supernault 2019-03-11 03:05:15 -06:00
parent 76e0a76ab0
commit bf90263259
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -158,7 +158,7 @@ class ProfileController extends Controller
public function showAtomFeed(Request $request, $user) public function showAtomFeed(Request $request, $user)
{ {
$profile = $user = Profile::whereUsername($user)->firstOrFail(); $profile = $user = Profile::whereNull('status')->whereNull('domain')->whereUsername($user)->whereIsPrivate(false)->firstOrFail();
if($profile->status != null) { if($profile->status != null) {
return $this->accountCheck($profile); return $this->accountCheck($profile);
} }