瀏覽代碼

Update ApiController

Daniel Supernault 5 年之前
父節點
當前提交
01a3841bc7
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      app/Http/Controllers/Api/ApiV1Controller.php

+ 3 - 3
app/Http/Controllers/Api/ApiV1Controller.php

@@ -1598,9 +1598,9 @@ class ApiV1Controller extends Controller
         $status = Status::findOrFail($id);
 
         $share = Status::firstOrCreate([
-            'profile_id' = $user->profile_id,
-            'reblog_of_id' = $status->id,
-            'in_reply_to_profile_id' = $status->profile_id
+            'profile_id' => $user->profile_id,
+            'reblog_of_id' => $status->id,
+            'in_reply_to_profile_id' => $status->profile_id
         ]);
 
         if($share->wasRecentlyCreated == true) {