1
0
Fork 0
forked from mirror/pixelfed

Update BookmarkController

This commit is contained in:
Daniel Supernault 2018-08-05 13:18:33 -06:00
parent 86d7d1a928
commit a230265d7b

View file

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