浏览代码

Update StatusController

Daniel Supernault 6 年之前
父节点
当前提交
89b1712603
共有 1 个文件被更改,包括 3 次插入0 次删除
  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();