$data = $formatter->format($bookmark);
$this->executePageHooks('delete_link', $data);
$this->container->bookmarkService->remove($bookmark, false);
- ++ $count;
+ ++$count;
}
if ($count > 0) {
return $response->write('<script>self.close();</script>');
}
+ if ($request->getParam('source') === 'batch') {
+ return $response->withStatus(204);
+ }
+
// Don't redirect to permalink after deletion.
return $this->redirectFromReferer($request, $response, ['shaare/']);
}