Update StatusController

This commit is contained in:
Daniel Supernault 2018-11-15 18:05:56 -07:00
parent 5a6dcf0ee5
commit 8fecceed51
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -22,7 +22,7 @@ class StatusController extends Controller
$user = Profile::whereUsername($username)->firstOrFail();
$status = Status::whereProfileId($user->id)
->where('visibility', '!=', 'draft')
->whereNotIn('visibility',['draft','direct'])
->findOrFail($id);
if($status->visibility == 'private' || $user->is_private) {