Update BookmarkController

pull/348/head
Daniel Supernault 7 years ago
parent 86d7d1a928
commit a230265d7b

@ -26,6 +26,10 @@ class BookmarkController extends Controller
['status_id' => $status->id], ['profile_id' => $profile->id]
);
if(!$bookmark->wasRecentlyCreated) {
$bookmark->delete();
}
if($request->ajax()) {
$response = ['code' => 200, 'msg' => 'Bookmark saved!'];
} else {

Loading…
Cancel
Save