Explorar el Código

Update StatusController

Daniel Supernault hace 6 años
padre
commit
89b1712603
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      app/Http/Controllers/StatusController.php

+ 3 - 0
app/Http/Controllers/StatusController.php

@@ -110,7 +110,10 @@ class StatusController extends Controller
         $status->profile_id = $profile->id;
         $status->caption = strip_tags($request->caption);
         $status->is_nsfw = $cw;
+
+        // TODO: remove deprecated visibility in favor of scope
         $status->visibility = $visibility;
+        $status->scope = $visibility;
 
         $status->save();