1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-24 16:53:17 +00:00

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

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