mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-01-11 14:40:46 +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;
|
$profile = $user->profile;
|
||||||
$visibility = $this->validateVisibility($request->visibility);
|
$visibility = $this->validateVisibility($request->visibility);
|
||||||
|
|
||||||
|
$cw = $profile->cw == true ? true : $cw;
|
||||||
|
$visibility = $profile->unlisted == true && $visibility == 'public' ? 'unlisted' : $visibility;
|
||||||
|
|
||||||
$status = new Status();
|
$status = new Status();
|
||||||
$status->profile_id = $profile->id;
|
$status->profile_id = $profile->id;
|
||||||
$status->caption = strip_tags($request->caption);
|
$status->caption = strip_tags($request->caption);
|
||||||
|
|
Loading…
Reference in a new issue