Update BookmarkController.php

pull/6407/head
Shlee 6 months ago committed by GitHub
parent 47b33b0a29
commit def22b267d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -48,9 +48,10 @@ class BookmarkController extends Controller
}
}
$bookmark = Bookmark::firstOrCreate(
['status_id' => $status->id], ['profile_id' => $user->profile_id]
);
$bookmark = Bookmark::firstOrCreate([
'status_id' => $status->id,
'profile_id' => $user->profile_id
]);
if (! $bookmark->wasRecentlyCreated) {
BookmarkService::del($user->profile_id, $status->id);

Loading…
Cancel
Save