Update ApiController

This commit is contained in:
Daniel Supernault 2019-09-29 02:55:26 -06:00
parent 1f9da762a8
commit 01a3841bc7
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -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) {