1
0
Fork 0

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
1 changed files with 1 additions and 1 deletions

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) {