1
0
Fork 0

Update StatusController

This commit is contained in:
Daniel Supernault 2019-01-10 20:45:33 -07:00
parent 7a80216462
commit 0d4907e34c
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 3 additions and 0 deletions

View File

@ -125,6 +125,9 @@ class StatusController extends Controller
$profile = $user->profile;
$visibility = $this->validateVisibility($request->visibility);
$cw = $profile->cw == true ? true : $cw;
$visibility = $profile->unlisted == true && $visibility == 'public' ? 'unlisted' : $visibility;
$status = new Status();
$status->profile_id = $profile->id;
$status->caption = strip_tags($request->caption);