mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-25 01:05:36 +00:00
Update StatusController
This commit is contained in:
parent
7a80216462
commit
0d4907e34c
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue